Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-21 12:29:53


AMDG

David Abrahams wrote:
>> What is the proper way to handle this? Below is my structure:
>>
>> template< typename t_type >
>> struct is_sink
>> {
>> typedef typename boost::mpl::or_<
>> vfx::io::is_device<t_type>,
>> boost::is_same<t_type, vfx::io::Sink>
>> > type;
>>
> ^
> missing "::type" here? Otherwise, the "typename" above is probably illegal
>

typename is legal because the or_ is qualified. It doesn't matter
that boost::mpl is a namespace. (Don't you just love these intuitive rules)

In Christ,
Steven Watanabe


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