Boost logo

Boost :

Subject: Re: [boost] [Review] Boost.Type Traits Extension by Frederic Bron
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-03-16 14:57:47


> I'm browsing the source, and don't see a lot of difference between
> detail/has_postfix_operator.hpp and detail/has_prefix_operator.hpp. Frederic
> (excuse the lack of accents), are the only differences the operator overload
> declaration and the location of BOOST_TT_TRAIT_OP relative to make<LHS>() or
> make<RHS>()?  If so, for maintenance purposes, it may be wise to combine the
> 2 headers.

Yes they are very similar but there another difference: postfix
operators have an additional int argument in their declaration so that
combining may be a bit tricky.

Frédéric


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