10 Jan
2005
10 Jan
'05
11:03 p.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