From a4a2760aaaa2d7a583142235ce1c2e52a30d87ce Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Mon, 4 Mar 2013 23:11:06 +0400 Subject: [PATCH] Make type_index constructor from std::type_info public (fixes #3) --- boost/type_index.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/boost/type_index.hpp b/boost/type_index.hpp index bdc1b16..91d3c62 100644 --- a/boost/type_index.hpp +++ b/boost/type_index.hpp @@ -254,18 +254,17 @@ public: private: const stl_type_info* pinfo_; - /// @cond - explicit type_index(const stl_type_info& inf) BOOST_NOEXCEPT - : pinfo_(&inf) - {} - /// @endcond - public: /// Default constructor. type_index() : pinfo_(&typeid(void)) {} + /// Constructs type_index from an instance of std::type_info. + explicit type_index(const stl_type_info& inf) BOOST_NOEXCEPT + : pinfo_(&inf) + {} + /// Factory method for constructing type_index instance for type T. /// Strips const, volatile and & modifiers from T. template