|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86412 - trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2013-10-23 22:17:14
Author: fmhess
Date: 2013-10-23 22:17:13 EDT (Wed, 23 Oct 2013)
New Revision: 86412
URL: http://svn.boost.org/trac/boost/changeset/86412
Log:
As per Peter Dimov's suggestion, the variadic binding constructor for slots
shouldn't accept zero arguments. There is also no need for it to accept a
single argument, and not doing so avoids a bug in MSVC12.
Refs #9286
Text files modified:
trunk/boost/signals2/variadic_slot.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/boost/signals2/variadic_slot.hpp
==============================================================================
--- trunk/boost/signals2/variadic_slot.hpp Wed Oct 23 22:12:51 2013 (r86411)
+++ trunk/boost/signals2/variadic_slot.hpp 2013-10-23 22:17:13 EDT (Wed, 23 Oct 2013) (r86412)
@@ -14,9 +14,10 @@
#include <boost/signals2/detail/variadic_arg_type.hpp>
#define BOOST_SIGNALS2_SLOT_N_BINDING_CONSTRUCTORS \
- template<typename ... BindArgs> slot(const BindArgs & ... args) \
+ template<typename A1, typename A2, typename ... BindArgs> \
+ slot(const A1 &arg1, const A2 &arg2, const BindArgs & ... args) \
{ \
- init_slot_function(boost::bind(args...)); \
+ init_slot_function(boost::bind(arg1, arg2, args...)); \
}
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