20 Dec
2013
20 Dec
'13
2:17 a.m.
Marshall Clow wrote:
This is more complicated than it looks, because some standard libraries declare do_length as:
‘virtual int do_length(mbstate_t&, const char*, const char*, size_t) const’
and others as:
'virtual int do_length(const mbstate_t&, const char*, const char*, size_t) const’
The easiest fix is probably to just define both.
This was changed in the C++ standard back about the 2004 (changed TO const mbstate_t)
C++11 has it non-const as far as I can see.