$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2003-09-15 14:36:21
At 19:37 2003-09-15, Eric Friedman wrote:
>Howard Hinnant wrote:
> > Like Daniel, I recommend the enable_if pattern here, but I would do it
> > like:
> >
> > struct test_t
> > {
> > template <typename T>
> > test_t(T&, typename enable_if<!is_const<T>::value>::type* = 0)
> > {
> > }
> >
> > template <typename T>
> > test_t(T&, typename enable_if<is_const<T>::value>::type* = 0)
> > {
> > }
> > }
>
>Unfortunately, this prevents construction from temporaries.
FWIW, the workaround I posted doesn't.
--- Daniel Wallin