Boost logo

Boost :

Subject: Re: [boost] [Review] Boost.Type Traits Extension by Frederic Bron
From: Max Sobolev (macsmr_at_[hidden])
Date: 2011-03-14 09:53:07


On 14.03.2011 16:27, Тимофей Игнатьич wrote:
> The default void return type should probably be changed to some internal dummy type.
> This would allow to check if the return type is actually void if so desired.
>
> class dymmy_type;
>
> template< class LHS, class RHS=LHS, class RET=dymmy_type>
> has_operator_op;

i am agree with this.

but *internal* sounds like:

namespace boost {

namespace type_traits { namespace detail {

struct dymmy_type;

} }

template<class LHS, class RHS =LHS, class RET
=type_traits::detail::dymmy_type>
> has_operator_op;

} // namespace boost

dummy_type should be placed in a "private" namespace


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