Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51574 - trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2009-03-03 10:20:28


Author: fmhess
Date: 2009-03-03 10:20:27 EST (Tue, 03 Mar 2009)
New Revision: 51574
URL: http://svn.boost.org/trac/boost/changeset/51574

Log:
Trying to fix compile error of some test programs on compilers that don't
support void returns.

Text files modified:
   trunk/libs/signals2/test/signal_n_test.cpp | 9 +++++++++
   trunk/libs/signals2/test/signal_test.cpp | 9 +++++++++
   2 files changed, 18 insertions(+), 0 deletions(-)

Modified: trunk/libs/signals2/test/signal_n_test.cpp
==============================================================================
--- trunk/libs/signals2/test/signal_n_test.cpp (original)
+++ trunk/libs/signals2/test/signal_n_test.cpp 2009-03-03 10:20:27 EST (Tue, 03 Mar 2009)
@@ -227,6 +227,15 @@
   return ResultType();
 }
 
+#ifdef BOOST_NO_VOID_RETURNS
+template<>
+ void disconnecting_slot<void>(const boost::signals2::connection &conn, int)
+{
+ conn.disconnect();
+ return;
+}
+#endif
+
 template<typename ResultType>
   void test_extended_slot()
 {

Modified: trunk/libs/signals2/test/signal_test.cpp
==============================================================================
--- trunk/libs/signals2/test/signal_test.cpp (original)
+++ trunk/libs/signals2/test/signal_test.cpp 2009-03-03 10:20:27 EST (Tue, 03 Mar 2009)
@@ -164,6 +164,15 @@
   return ResultType();
 }
 
+#ifdef BOOST_NO_VOID_RETURNS
+template<>
+ void disconnecting_slot<void>(const boost::signals2::connection &conn, int)
+{
+ conn.disconnect();
+ return;
+}
+#endif
+
 template<typename ResultType>
   void test_extended_slot()
 {


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