Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2004-12-02 13:49:59


David Abrahams wrote:
> Eric Niebler wrote:
>> You need to use UDTs.
>
> You must've missed my more recent posting which tests UDTs.
>

That posting is buggy as well. The functions:

   int const_rvalue();
   x const_rvaluex();

should be:

   int const const_rvalue();
   x const const_rvaluex();

You're not testing the most interesting case! After this change, the
following assert fails:

   BOOST_STATIC_ASSERT(IS_RVALUE(const_rvaluex()));

And we're back to square 1. :(

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

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