boostorg / boostorg/program_options

do_length hides overloaded

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
136
Forks
117
PR merge metrics
No merged PRs in 30d

Description

Got this in a build today (develop):

https://api.travis-ci.org/jobs/292877168/log.txt?deansi=true

```
In file included from libs/program_options/src/convert.cpp:19:
In file included from ./boost/program_options/detail/utf8_codecvt_facet.hpp:19:
./boost/detail/utf8_codecvt_facet.hpp:181:17: warning: 'boost::program_options::detail::utf8_codecvt_facet::do_length' hides overloaded virtual function [-Woverloaded-virtual]
virtual int do_length(
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0/../../../../include/c++/7.2.0/bits/codecvt.h:453:11: note: hidden overloaded virtual function 'std::codecvt::do_length' declared here: type mismatch at 1st parameter ('std::codecvt::state_type &' (aka '__mbstate_t &') vs 'const std::mbstate_t &' (aka 'const __mbstate_t &'))
int do_length(state_type&, const extern_type* __from,
^
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.