Update of /cvsroot/boost-sandbox/boost-sandbox/libs/thread_safe_signals/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12628/libs/thread_safe_signals/test
Modified Files:
track_test.cpp
Log Message:
My problems with bind syntactic sugar appear to be a compiler bug after
all. The errors go away with gcc 4.1.2
Index: track_test.cpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/thread_safe_signals/test/track_test.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- track_test.cpp 28 Feb 2007 16:19:41 -0000 1.4
+++ track_test.cpp 28 Feb 2007 17:08:12 -0000 1.5
@@ -60,13 +60,9 @@
// Test auto-disconnection of slot before signal connection
{
boost::shared_ptr<int> shorty(new int(1));
-// doesn't work? gcc says: error: type specifier omitted for parameter `shorty'
+// doesn't work on gcc 3.3.5, it says: error: type specifier omitted for parameter `shorty'
+// does work on gcc 4.1.2
// sig_type::slot_type slot(swallow(), shorty.get(), _1);
-//works
-// sig_type::slot_type slot(boost::bind(swallow(), shorty.get(), _1));
-// also works
-// sig_type::slot_type slot = sig_type::slot_type(swallow(), shorty.get(), _1);
-// also works
swallow myswallow;
sig_type::slot_type slot(myswallow, shorty.get(), _1);
|