Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-11-07 15:48:35


"Caleb Epstein" <caleb.epstein_at_[hidden]> wrote in message
news:989aceac041107112759613c30_at_mail.gmail.com...
| In the assign library documentation page
| <boost>/libs/assign/doc/index.html#repeat:
|
| v = list_of(1).repeat(5,2)(3);
| // v = [1,2,2,2,2,2,3]
| BOOST_ASSERT( v.size() == 1 + 5 + 3 );
|
| push_back( v )(1).repeat(1,2)(3);
| // v = old v + [1,2,3]
| BOOST_ASSERT( v.size() == 12 );
|
| I think the first BOOST_ASSERT should be BOOST_ASSERT (v.size() == 1 +
| 5 + 1) and the last one should be BOOST_ASSERT( v.size() == 10 );

yes, thanks!

It's applied to the dev-branch.

-Thorsten


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