|
Boost Users : |
From: Lemings, Eric B. \(Contr\) (Eric.Lemings_at_[hidden])
Date: 2005-01-10 18:03:14
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.
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