Problems with std::numeric_limits

Paolo Carlini pcarlini@suse.de
Sat Jan 14 09:34:00 GMT 2006


Ed Smith-Rowland wrote:

> This did not correspond to my idea of minimum surprise :oP.

But Roberto also explained that the is_specialized member is there for a
reason... Maybe you can have a look to the way PPL is dealing with the
issue:

    http://www.cs.unipr.it/ppl/
    (and
http://www.cs.unipr.it/pipermail/ppl-devel/2006-January/thread.html)

> Anyhow,
> How do you strip a type of cv qualifications so you can do generic
> mathematics???
> I guess std::tr1::remove_cv<_Tp>::type would do it?

Yes, it would. Under
testsuite/tr1/4_metaprogramming/const_volatile_modifications you will
find quite a few examples.

Paolo.



More information about the Libstdc++ mailing list