Boost logo

Boost Users :

From: MB (mb2act_at_[hidden])
Date: 2006-01-16 11:19:17


Sebastian Redl wrote:
> Victor A. Wagner Jr. wrote:
>
>
>>didn't I read about something called that (or something close) in the MPL book?
>>
>>
>
> Yes, but that's only for types (code example not authoritative - I have
> no idea how the thing is really called):
>
> template<typename T>
> void funct(T bla)
> {
> typename boost::mpl::add_const<T>::type constant(10);
> // ...
> }
>
> The type of constant is "const T".
>
> Sebastian Redl

I think 'add_const' is reserved for Boost.TypeTraits.

I post this tiny proposal to Boost.Devel anyway.

Regards,
MB
p-stade.sourceforge.net


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net