This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Problems with std::numeric_limits
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 14 Jan 2006 10:34:57 +0100
- Subject: Re: Problems with std::numeric_limits
- References: <43C88F66.6070000@verizon.net>
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.