This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with std::numeric_limits


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]