Reputation: 1809
I can use all other public members of the class typed_value define in value_semantic.hpp such as: default_value, implicit_value, zero_tokens, multitoken, notifier, etc.
But even if the member "required()" is also there, I cannot use it.
I got the error:
‘class boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>’ has no member named ‘required’
Any ideas?
Upvotes: 1
Views: 923
Reputation: 17159
Is your boost version maybe too old? I found required() in the docs for 1.45, but not in the ones for 1.34 - I don't know when it changed.
Upvotes: 2