diff -r 72f5890881c2 boost/boost/program_options/value_semantic.hpp
a
|
b
|
|
12 | 12 | #include <boost/any.hpp> |
13 | 13 | #include <boost/function/function1.hpp> |
14 | 14 | #include <boost/lexical_cast.hpp> |
| 15 | #include <boost/core/typeinfo.hpp> |
15 | 16 | |
16 | 17 | |
17 | 18 | #include <string> |
18 | 19 | #include <vector> |
19 | | #include <typeinfo> |
20 | 20 | |
21 | 21 | namespace boost { namespace program_options { |
22 | 22 | |
… |
… |
|
167 | 167 | public: |
168 | 168 | // Returns the type of the value described by this |
169 | 169 | // object. |
170 | | virtual const std::type_info& value_type() const = 0; |
| 170 | virtual const boost::core::typeinfo& value_type() const = 0; |
171 | 171 | // Not really needed, since deletion from this |
172 | 172 | // class is silly, but just in case. |
173 | 173 | virtual ~typed_value_base() {} |
… |
… |
|
350 | 350 | |
351 | 351 | public: // typed_value_base overrides |
352 | 352 | |
353 | | const std::type_info& value_type() const |
| 353 | const boost::core::typeinfo& value_type() const |
354 | 354 | { |
355 | | return typeid(T); |
| 355 | return BOOST_CORE_TYPEID(T); |
356 | 356 | } |
357 | 357 | |
358 | 358 | |