We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6feeeb3 commit bd1d0bdCopy full SHA for bd1d0bd
include/boost/program_options/value_semantic.hpp
@@ -175,7 +175,7 @@ namespace boost { namespace program_options {
175
public:
176
// Returns the type of the value described by this
177
// object.
178
- virtual const boost::typeindex::type_info& value_type() const = 0;
+ virtual const std::type_info& value_type() const = 0;
179
// Not really needed, since deletion from this
180
// class is silly, but just in case.
181
virtual ~typed_value_base() {}
@@ -366,7 +366,7 @@ namespace boost { namespace program_options {
366
#ifndef BOOST_NO_RTTI
367
const boost::typeindex::type_info& value_type() const
368
{
369
- return boost::typeindex::type_id<T>().type_info();
+ return typeid(T);
370
}
371
#endif
372
0 commit comments