These test facets were failing to override the members in the
std::codecvt base class.
libstdc++-v3/ChangeLog:
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc
(Cvt::do_length): Fix signature to override virtual function in
base.
* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
(Cvt::do_length): Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/1.cc
(NoconvCvt::do_in): Likewise.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc
(checksumcvt::do_length): Likewise.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
virtual int
do_length(std::mbstate_t&, const char* from, const char* end,
- std::size_t max)
+ std::size_t max) const
{
std::size_t len = (end - from) / sizeof(wchar_t);
return std::min(len, max) * sizeof(wchar_t);
virtual int
do_length(std::mbstate_t&, const char* from, const char* end,
- std::size_t max)
+ std::size_t max) const
{
std::size_t len = (end - from) / sizeof(wchar_t);
return std::min(len, max) * sizeof(wchar_t);
virtual result
do_in(state_type&, const char* from, const char*, const char*& from_next,
- char* to, char*, char*& to_next)
+ char* to, char*, char*& to_next) const
{
from_next = from;
to_next = to;
{ return width; }
virtual int
- do_length(const StateT&, const extern_type* from,
+ do_length(StateT&, const extern_type* from,
const extern_type* end, size_t max) const
{
size_t len = std::min(max,