From ff2c6018a33ef7ceb8638af2bee755f577e5e176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Thu, 21 Mar 2002 03:52:09 +0000 Subject: [PATCH] added initializers for placeholder constants [SVN r13233] --- include/boost/lambda/core.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/lambda/core.hpp b/include/boost/lambda/core.hpp index 95cdbc7..8c6bd0b 100644 --- a/include/boost/lambda/core.hpp +++ b/include/boost/lambda/core.hpp @@ -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;