16 Jan
2006
16 Jan
'06
10:15 a.m.
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