|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-06-01 13:02:33
Author: eric_niebler
Date: 2008-06-01 13:02:33 EDT (Sun, 01 Jun 2008)
New Revision: 46016
URL: http://svn.boost.org/trac/boost/changeset/46016
Log:
updated lambda tests
Text files modified:
branches/proto/v4/libs/phoenix/test/Jamfile.v2 | 2 +-
branches/proto/v4/libs/phoenix/test/scope/lambda_tests.cpp | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
Modified: branches/proto/v4/libs/phoenix/test/Jamfile.v2
==============================================================================
--- branches/proto/v4/libs/phoenix/test/Jamfile.v2 (original)
+++ branches/proto/v4/libs/phoenix/test/Jamfile.v2 2008-06-01 13:02:33 EDT (Sun, 01 Jun 2008)
@@ -78,7 +78,7 @@
;
test-suite phoenix_scope :
-# [ run scope/lambda_tests.cpp ]
+ [ run scope/lambda_tests.cpp ]
[ run scope/let_tests.cpp ]
# [ run scope/dynamic_tests.cpp ]
# [ run scope/bug_000008.cpp : : : $(multi-threading) ]
Modified: branches/proto/v4/libs/phoenix/test/scope/lambda_tests.cpp
==============================================================================
--- branches/proto/v4/libs/phoenix/test/scope/lambda_tests.cpp (original)
+++ branches/proto/v4/libs/phoenix/test/scope/lambda_tests.cpp 2008-06-01 13:02:33 EDT (Sun, 01 Jun 2008)
@@ -21,7 +21,7 @@
{
struct for_each_impl
{
- template <typename C, typename F>
+ template <typename Sig>
struct result
{
typedef void type;
@@ -34,11 +34,11 @@
}
};
- function<for_each_impl> const for_each = for_each_impl();
+ function<for_each_impl> const for_each = {};
struct push_back_impl
{
- template <typename C, typename T>
+ template <typename Sig>
struct result
{
typedef void type;
@@ -51,7 +51,7 @@
}
};
- function<push_back_impl> const push_back = push_back_impl();
+ function<push_back_impl> const push_back = {};
}}
using namespace boost::phoenix;
@@ -170,7 +170,8 @@
}
{
- int x = (let(_a = lambda[val(1)])[_a])()();
+ //int x = (let(_a = lambda[val(1)])[_a])()();
+ int x = (let(_a = lambda[val(1)])[val(_a)])()();
BOOST_TEST(x == 1);
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk