mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 12:27:15 +02:00
Swapped the standard and non-standard overrides for do_length.
This commit is contained in:
@ -179,7 +179,7 @@ protected:
|
|||||||
// How many char objects can I process to get <= max_limit
|
// How many char objects can I process to get <= max_limit
|
||||||
// wchar_t objects?
|
// wchar_t objects?
|
||||||
virtual int do_length(
|
virtual int do_length(
|
||||||
const std::mbstate_t &,
|
std::mbstate_t &,
|
||||||
const char * from,
|
const char * from,
|
||||||
const char * from_end,
|
const char * from_end,
|
||||||
std::size_t max_limit
|
std::size_t max_limit
|
||||||
@ -189,8 +189,9 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// Nonstandard override
|
||||||
virtual int do_length(
|
virtual int do_length(
|
||||||
std::mbstate_t & s,
|
const std::mbstate_t & s,
|
||||||
const char * from,
|
const char * from,
|
||||||
const char * from_end,
|
const char * from_end,
|
||||||
std::size_t max_limit
|
std::size_t max_limit
|
||||||
@ -200,7 +201,7 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
return do_length(
|
return do_length(
|
||||||
const_cast<const std::mbstate_t &>(s),
|
const_cast<std::mbstate_t &>(s),
|
||||||
from,
|
from,
|
||||||
from_end,
|
from_end,
|
||||||
max_limit
|
max_limit
|
||||||
|
@ -177,7 +177,7 @@ std::codecvt_base::result utf8_codecvt_facet::do_out(
|
|||||||
// How many char objects can I process to get <= max_limit
|
// How many char objects can I process to get <= max_limit
|
||||||
// wchar_t objects?
|
// wchar_t objects?
|
||||||
int utf8_codecvt_facet::do_length(
|
int utf8_codecvt_facet::do_length(
|
||||||
const std::mbstate_t &,
|
std::mbstate_t &,
|
||||||
const char * from,
|
const char * from,
|
||||||
const char * from_end,
|
const char * from_end,
|
||||||
std::size_t max_limit
|
std::size_t max_limit
|
||||||
|
Reference in New Issue
Block a user