-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use shared library in C++98 #65
Comments
It is not a surprise I mentioned the roots of the problem in boostorg/function#25 (comment). |
|
boostorg/parameter@fb88905a9903 is missing on |
Reverting boostorg/function#25 does help. It was the first thing I've tried. |
Can you please check if Kojoley@99727ac solves the problem? |
After 99727ac Boost itself fails to build: In file included from libs/program_options/src/options_description.cpp:13:
./boost/program_options/parsers.hpp:172:38: error: too few template arguments for class template 'pair'
function<std::pair<std::string(std::string)>,
^
./boost/container/detail/std_fwd.hpp:39:8: note: template is declared here
struct pair;
^
In file included from libs/program_options/src/options_description.cpp:13:
./boost/program_options/parsers.hpp:173:54: error: no viable conversion from 'boost::program_options::ext_parser' (aka 'function<pair<basic_string<char, char_traits<char>, allocator<char> >, basic_string<char, char_traits<char>, allocator<char> > > (const basic_string<char, char_traits<char>, allocator<char> > &)>') to 'int'
const std::string&> ext
^
./boost/function/function_template.hpp:955:5: note: candidate function
operator safe_bool () const
^
./boost/program_options/parsers.hpp:173:54: note: passing argument to parameter 'ext' here
const std::string&> ext
^
2 errors generated. |
Replacing |
I do not understand why On the other hand, the problem is that @jbeich uses libraries compiled with C++11 with C++03 apps. I do not think we should bother about this case anymore. |
It's probably best to revert the Function change for now. |
After boostorg/function#25 building a C++ < 11 consumer fails. Affects at least gearmand, pdfedit, uhd. CC @Kojoley
The text was updated successfully, but these errors were encountered: