|
Boost : |
Subject: Re: [boost] [TypeIndex] Peer review period for library acceptance begins, ending Thurs 21st Nov
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-11-16 05:46:14
On Friday 15 November 2013 19:51:35 Antony Polukhin wrote:
> 2013/11/14 Andrey Semashev <andrey.semashev_at_[hidden]>
> <...>
>
> > 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk