Permalink
Browse files

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

  • Loading branch information...
1 parent 7ab05fa commit a4a2760aaaa2d7a583142235ce1c2e52a30d87ce @apolukhin committed Mar 4, 2013
Showing with 5 additions and 6 deletions.
  1. +5 −6 boost/type_index.hpp
View
@@ -254,18 +254,17 @@ class type_index {
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>

0 comments on commit a4a2760

Please sign in to comment.