Boost logo

Boost Users :

From: Andy Little (andy_at_[hidden])
Date: 2005-05-12 11:40:37


"me22" <me22.ca_at_[hidden]> wrote

> // But if I try this, I get the errors
> template <typename fT>
> explicit position(typename boost::enable_if<
> boost::is_convertible<fT, wrapped_type>,
> fT>::type f)
> : m_data( f ) {}
> */

Try:

   template <typename fT>
    explicit position(
        fT f,
        typename boost::enable_if<
            boost::is_convertible<fT, wrapped_type>,
            void*
>::type = 0
    )
    : m_data( f ) {}

regards
Andy Little


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