|
Boost : |
Subject: Re: [boost] [type traits] add a set of templates to propagate constetc from one type to another?
From: Steven Maitlall (m.steven_at_[hidden])
Date: 2010-03-03 14:22:33
>
> What about something like
>
qualify_from< From, To, Interest >
>
qualify_from<const int, int>::type would be 'const int'
> qualify_from<volatile int, int>::type would be 'volatile int'
> qualify_from<const volatile int, int, const void>::type would be 'const
int'
> qualify_from<const volatile int, int, volatile void>::type would be
'volatile int'
>
and I suppose ...
>
qualify_from<int, const int>::type could be 'int'
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk