Make type_index constructor from std::type_info public (fixes #3)

This commit is contained in:
Antony Polukhin
2013-03-04 23:11:06 +04:00
parent 7ab05fa6f3
commit a4a2760aaa

View File

@@ -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 <class T>