Skip to content

Commit 0756d35

Browse files
committed
Remove more unnecessary use of boost::type_index.
1 parent bd1d0bd commit 0756d35

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/boost/program_options/value_semantic.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
#include <boost/any.hpp>
1313
#include <boost/function/function1.hpp>
1414
#include <boost/lexical_cast.hpp>
15-
#include <boost/type_index.hpp>
16-
1715

1816
#include <string>
1917
#include <vector>
18+
#include <typeinfo>
2019
#include <limits>
2120

2221
namespace boost { namespace program_options {

test/options_description_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ void test_type()
2929
const typed_value_base* b = dynamic_cast<const typed_value_base*>
3030
(desc.find("foo", false).semantic().get());
3131
BOOST_CHECK(b);
32-
BOOST_CHECK(b->value_type() == boost::typeindex::type_id<int>());
32+
BOOST_CHECK(b->value_type() == typeid(int));
3333

3434
const typed_value_base* b2 = dynamic_cast<const typed_value_base*>
3535
(desc.find("bar", false).semantic().get());
3636
BOOST_CHECK(b2);
37-
BOOST_CHECK(b2->value_type() == boost::typeindex::type_id<string>());
37+
BOOST_CHECK(b2->value_type() == typeid(string));
3838
#endif
3939
}
4040

0 commit comments

Comments
 (0)