File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
include/boost/program_options Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
#include < boost/any.hpp>
13
13
#include < boost/function/function1.hpp>
14
14
#include < boost/lexical_cast.hpp>
15
- #include < boost/type_index.hpp>
16
-
17
15
18
16
#include < string>
19
17
#include < vector>
18
+ #include < typeinfo>
20
19
#include < limits>
21
20
22
21
namespace boost { namespace program_options {
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ void test_type()
29
29
const typed_value_base* b = dynamic_cast <const typed_value_base*>
30
30
(desc.find (" foo" , false ).semantic ().get ());
31
31
BOOST_CHECK (b);
32
- BOOST_CHECK (b->value_type () == boost::typeindex::type_id< int >( ));
32
+ BOOST_CHECK (b->value_type () == typeid ( int ));
33
33
34
34
const typed_value_base* b2 = dynamic_cast <const typed_value_base*>
35
35
(desc.find (" bar" , false ).semantic ().get ());
36
36
BOOST_CHECK (b2);
37
- BOOST_CHECK (b2->value_type () == boost::typeindex::type_id<string>( ));
37
+ BOOST_CHECK (b2->value_type () == typeid (string ));
38
38
#endif
39
39
}
40
40
You can’t perform that action at this time.
0 commit comments