|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50784 - sandbox/thread_safe_signals/trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2009-01-26 10:32:29
Author: fmhess
Date: 2009-01-26 10:32:29 EST (Mon, 26 Jan 2009)
New Revision: 50784
URL: http://svn.boost.org/trac/boost/changeset/50784
Log:
Added test of signature_type keyword.
Text files modified:
sandbox/thread_safe_signals/trunk/libs/signals2/test/signal_type_test.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/libs/signals2/test/signal_type_test.cpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/libs/signals2/test/signal_type_test.cpp (original)
+++ sandbox/thread_safe_signals/trunk/libs/signals2/test/signal_type_test.cpp 2009-01-26 10:32:29 EST (Mon, 26 Jan 2009)
@@ -28,5 +28,13 @@
bs2::signal<double (int), bs2::optional_last_value<double>, float, std::less<float> > mysig2;
BOOST_CHECK(typeid(mysig) == typeid(mysig2));
}
+#ifdef BOOST_SIGNALS2_NAMED_SIGNATURE_PARAMETER
+ {
+ using namespace bs2::keywords;
+ bs2::signal_type<signature_type<float (long*)> >::type mysig;
+ bs2::signal<float (long*)> mysig2;
+ BOOST_CHECK(typeid(mysig) == typeid(mysig2));
+ }
+#endif // BOOST_SIGNALS2_NAMED_SIGNATURE_PARAMETER
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