Re: C++ Template Metaprogramming - Exercise 2-0
11 Jan
2005
11 Jan
'05
1:31 a.m.
Dave Abrahams wrote:
Actually there's a much more concise solution using the type traits library. That is, after all, the focus of the chapter.
I believe that would be: template <typename T> struct add_const_ref { typedef add_const<add_ref<T>::type>::type type; }; Correct me if I'm wrong. Eric.
7192
Age (days ago)
7192
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lemings, Eric B. (Contr)