|
@@ -380,9 +380,7 @@ public:
|
|
/// \param pos The position in the buffer to be returned.
|
|
/// \param pos The position in the buffer to be returned.
|
|
uint8_t operator[](size_t pos) const
|
|
uint8_t operator[](size_t pos) const
|
|
{
|
|
{
|
|
- if (pos >= size_) {
|
|
+ assert (pos < size_);
|
|
- isc_throw(InvalidBufferPosition, "read at invalid position");
|
|
|
|
- }
|
|
|
|
return (buffer_[pos]);
|
|
return (buffer_[pos]);
|
|
}
|
|
}
|
|
//@}
|
|
//@}
|