25 Nov
2013
25 Nov
'13
7:39 p.m.
On Monday 25 November 2013 13:46:21 Niall Douglas wrote:
On 25 Nov 2013 at 11:59, Andrey Semashev wrote:
mangled_name() is a double evil in my view, because in addition to the problems it causes it also requires us to implement mangling schemes (I see no point in this function if it simply throws on some platforms).
No one is suggesting one would use mangled_name() for anything except where you need to compare a boost::type_index<T> with a std::type_info for equality. There you can compare the strings returned by each for equality - if they are equal, they refer to the same type.
No they don't. You can never test boost::type_index and std::type_info for equivalence by comparing their names.