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

added initializers for placeholder constants

[SVN r13233]
This commit is contained in:
Jaakko Järvi
2002-03-21 03:52:09 +00:00
parent a9276b49ec
commit ff2c6018a3

View File

@@ -54,9 +54,10 @@ namespace lambda {
namespace {
boost::lambda::placeholder1_type free1;
boost::lambda::placeholder2_type free2;
boost::lambda::placeholder3_type free3;
// These are constants types and need to be initialised
boost::lambda::placeholder1_type free1 = boost::lambda::placeholder1_type();
boost::lambda::placeholder2_type free2 = boost::lambda::placeholder2_type();
boost::lambda::placeholder3_type free3 = boost::lambda::placeholder3_type();
boost::lambda::placeholder1_type& _1 = free1;
boost::lambda::placeholder2_type& _2 = free2;