From 0756d35f8bf84eacd4521a07fdc560bd69d1fdb1 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 1 May 2015 19:13:38 +0300 Subject: [PATCH] Remove more unnecessary use of boost::type_index. --- include/boost/program_options/value_semantic.hpp | 3 +-- test/options_description_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/boost/program_options/value_semantic.hpp b/include/boost/program_options/value_semantic.hpp index 6e078f8..e8235b7 100644 --- a/include/boost/program_options/value_semantic.hpp +++ b/include/boost/program_options/value_semantic.hpp @@ -12,11 +12,10 @@ #include #include #include -#include - #include #include +#include #include namespace boost { namespace program_options { diff --git a/test/options_description_test.cpp b/test/options_description_test.cpp index 695f1d9..42365e9 100644 --- a/test/options_description_test.cpp +++ b/test/options_description_test.cpp @@ -29,12 +29,12 @@ void test_type() const typed_value_base* b = dynamic_cast (desc.find("foo", false).semantic().get()); BOOST_CHECK(b); - BOOST_CHECK(b->value_type() == boost::typeindex::type_id()); + BOOST_CHECK(b->value_type() == typeid(int)); const typed_value_base* b2 = dynamic_cast (desc.find("bar", false).semantic().get()); BOOST_CHECK(b2); - BOOST_CHECK(b2->value_type() == boost::typeindex::type_id()); + BOOST_CHECK(b2->value_type() == typeid(string)); #endif }