2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-02-02 21:02:18 +00:00

Merge lambda from the trunk

[SVN r63555]
This commit is contained in:
Steven Watanabe
2010-07-03 19:05:15 +00:00
parent 08b3f6336c
commit 0d0f71272e
17 changed files with 579 additions and 580 deletions

View File

@@ -235,6 +235,22 @@ void compound_operators() {
(_1 %= 2)(i);
BOOST_CHECK(i == 1);
// lambda expression as a left operand with rvalue on RHS
(_1 += (0 + 1))(i);
BOOST_CHECK(i == 2);
(_1 -= (0 + 1))(i);
BOOST_CHECK(i == 1);
(_1 *= (0 + 10))(i);
BOOST_CHECK(i == 10);
(_1 /= (0 + 2))(i);
BOOST_CHECK(i == 5);
(_1 %= (0 + 2))(i);
BOOST_CHECK(i == 1);
// shifts
unsigned int ui = 2;
(_1 <<= 1)(ui);