Boost logo

Boost Users :

Subject: Re: [Boost-users] [type_traits] will the future has_operator_left_shift be able to test if a type is serializable to a stream ?
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-02-06 01:19:05


>> BOOST_STATIC_ASSERT(( boost::has_operator_left_shift<  std::ostream,
>> int>::value ));
>
> This one still produces the following warning (with both vc80 and vc100) :
>
> boost/type_traits/detail/has_binary_operator.hpp(102): warning C4913: user
> defined binary operator ',' exists but no overload could convert all
> operands, default built-in binary operator ',' used
>          boost/type_traits/detail/has_binary_operator.hpp(136)

What says this warning is fine (by the way I have been able to
reproduce it with VC++ 2010). It describes well what happen. I do not
know if it is possbile to remove the warning. Nevertheless, what is
important is that the result is now 'true'.
I am getting closer to the review.

Frédéric


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