
16 Nov
2013
16 Nov
'13
10:46 a.m.
On Friday 15 November 2013 19:51:35 Antony Polukhin wrote:
2013/11/14 Andrey Semashev
<...> class type_index {
boost::type_info const* m_type_info;
public: explicit type_index(boost::type_info const&); boost::type_info const& get() const; // as previously discussed: const char* name() const; const char* raw_name() const; std::string pretty_name() const;
};
Don't really like the "get()" name. Following name is more clear:
public: boost::type_info const& type_info() const noexcept;
Ok?
Yes, that would be fine. And another amendment. In my original pseudo-code type_id() returned type_index. It should actually be boost::type_info const&, and the function should be in type_info.hpp.