Skip to content

Commit bd1d0bd

Browse files
committed
Put back std::type_info.
Since typed_value_base is only used with RTTI on, there's no need to avoid std::type_info there.
1 parent 6feeeb3 commit bd1d0bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/program_options/value_semantic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ namespace boost { namespace program_options {
175175
public:
176176
// Returns the type of the value described by this
177177
// object.
178-
virtual const boost::typeindex::type_info& value_type() const = 0;
178+
virtual const std::type_info& value_type() const = 0;
179179
// Not really needed, since deletion from this
180180
// class is silly, but just in case.
181181
virtual ~typed_value_base() {}
@@ -366,7 +366,7 @@ namespace boost { namespace program_options {
366366
#ifndef BOOST_NO_RTTI
367367
const boost::typeindex::type_info& value_type() const
368368
{
369-
return boost::typeindex::type_id<T>().type_info();
369+
return typeid(T);
370370
}
371371
#endif
372372

0 commit comments

Comments
 (0)