Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2004-01-25 21:07:54


"Andy Little" <andy_at_[hidden]> wrote

Oops... the second function in value_type_traits had incorrect params should
be:

template<
    typename Value_type,
    template<
        typename T,
        typename S
> class Converter
>
struct value_type_traits
{
    typedef Value_type value_type;
    template <typename V>
    static Value_type convert_to_value_type( V v)
    {
        return Converter<Value_type,V>::convert(v);
    }
    template <typename V>
    static V convert_from_value_type( Value_type v)
    {
        return Converter<V,Value_type>::convert(v);
    }
};

apologies
Andy Little


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk