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:
Andrey Semashev
2017-10-29 19:27:04 +03:00
parent b47fccb4a4
commit aee87734a8

View File

@ -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