Subject: Re: [boost] [Filesystem] Hidden overloaded virtual function
From: Peter Dimov (lists_at_[hidden])
Date: 2013-12-19 21:17:43
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)
> 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
C++11 has it non-const as far as I can see.