Boost logo

Boost Users :

From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-07-21 14:20:26


On Mon, Jul 21, 2008 at 11:29 AM, Steven Watanabe <watanabesj_at_[hidden]>
wrote:

> 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)

Mind emphasizing a bit? What do you mean by the or_ being qualified? You
mean because I access it through namespace scope? I'm not sure what you
mean...



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