mirror of
https://github.com/boostorg/detail.git
synced 2025-08-01 05:14:28 +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()
|
throw()
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
/*
|
|
||||||
virtual int do_length(
|
virtual int do_length(
|
||||||
std::mbstate_t & s,
|
std::mbstate_t & s,
|
||||||
const char * from,
|
const char * from,
|
||||||
@@ -206,7 +206,7 @@ protected:
|
|||||||
max_limit
|
max_limit
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// Largest possible value do_length(state,from,from_end,1) could return.
|
// Largest possible value do_length(state,from,from_end,1) could return.
|
||||||
virtual int do_max_length() const BOOST_NOEXCEPT_OR_NOTHROW {
|
virtual int do_max_length() const BOOST_NOEXCEPT_OR_NOTHROW {
|
||||||
return 6; // largest UTF-8 encoding of a UCS-4 character
|
return 6; // largest UTF-8 encoding of a UCS-4 character
|
||||||
|
Reference in New Issue
Block a user