mirror of
https://github.com/boostorg/detail.git
synced 2025-07-31 12:57:14 +02:00
Fixed do_length virtual override.
Fixed a bug introduced by b47fccb4a4
, which
commented the correct virtual function override and thus broke length() result.
This commit is contained in:
@ -188,7 +188,7 @@ protected:
|
||||
throw()
|
||||
#endif
|
||||
;
|
||||
/*
|
||||
|
||||
virtual int do_length(
|
||||
std::mbstate_t & s,
|
||||
const char * from,
|
||||
@ -206,7 +206,7 @@ protected:
|
||||
max_limit
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
// Largest possible value do_length(state,from,from_end,1) could return.
|
||||
virtual int do_max_length() const BOOST_NOEXCEPT_OR_NOTHROW {
|
||||
return 6; // largest UTF-8 encoding of a UCS-4 character
|
||||
|
Reference in New Issue
Block a user