Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49082 - in sandbox/thread_safe_signals/trunk: boost/signals2 libs/signals2/test
From: fmhess_at_[hidden]
Date: 2008-10-01 11:11:00


Author: fmhess
Date: 2008-10-01 11:11:00 EDT (Wed, 01 Oct 2008)
New Revision: 49082
URL: http://svn.boost.org/trac/boost/changeset/49082

Log:
Added test to make sure slot.hpp can compile on its
own, and added missing include so it passes.

Added:
   sandbox/thread_safe_signals/trunk/libs/signals2/test/slot_compile_test.cpp (contents, props changed)
Text files modified:
   sandbox/thread_safe_signals/trunk/boost/signals2/slot.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/thread_safe_signals/trunk/boost/signals2/slot.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/slot.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/slot.hpp 2008-10-01 11:11:00 EDT (Wed, 01 Oct 2008)
@@ -15,6 +15,7 @@
 #include <boost/bind.hpp>
 #include <boost/function.hpp>
 #include <boost/mpl/bool.hpp>
+#include <boost/preprocessor/repetition.hpp>
 #include <boost/ref.hpp>
 #include <boost/signals2/detail/signals_common.hpp>
 #include <boost/signals2/detail/signals_common_macros.hpp>

Added: sandbox/thread_safe_signals/trunk/libs/signals2/test/slot_compile_test.cpp
==============================================================================
--- (empty file)
+++ sandbox/thread_safe_signals/trunk/libs/signals2/test/slot_compile_test.cpp 2008-10-01 11:11:00 EDT (Wed, 01 Oct 2008)
@@ -0,0 +1,28 @@
+// Signals2 library
+// test for compilation of boost/signals2/slot.hpp
+
+// Copyright Frank Mori Hess 2008
+// Use, modification and
+// distribution is subject to the Boost Software License, Version
+// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// For more information, see http://www.boost.org
+
+#include <boost/test/minimal.hpp>
+#include <boost/signals2/slot.hpp>
+
+void myslot()
+{}
+
+int myslot2(int)
+{
+ return 0;
+}
+
+int test_main(int, char*[])
+{
+ boost::signals2::slot<void (void)> sl0(&myslot);
+ boost::signals2::slot1<int, int> sl2(&myslot2);
+ return 0;
+}


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