|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50786 - sandbox/thread_safe_signals/trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2009-01-26 11:17:55
Author: fmhess
Date: 2009-01-26 11:17:55 EST (Mon, 26 Jan 2009)
New Revision: 50786
URL: http://svn.boost.org/trac/boost/changeset/50786
Log:
Added test of passing template type parameters through signal_type
positionally.
Text files modified:
sandbox/thread_safe_signals/trunk/libs/signals2/test/signal_type_test.cpp | 10 ++++++++--
1 files changed, 8 insertions(+), 2 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 11:17:55 EST (Mon, 26 Jan 2009)
@@ -7,7 +7,7 @@
// See http://www.boost.org/libs/signals2 for library home page.
-#include <boost/signals2/signal_type.hpp>
+#include <boost/signals2.hpp>
#include <boost/test/minimal.hpp>
@@ -16,18 +16,24 @@
int test_main(int, char*[])
{
{
- using namespace bs2::keywords;
bs2::signal_type<void ()>::type mysig;
bs2::signal<void ()> mysig2;
BOOST_CHECK(typeid(mysig) == typeid(mysig2));
}
{
+ bs2::signal_type<double (int), bs2::last_value<double> >::type mysig;
+ bs2::signal<double (int), bs2::last_value<double> > mysig2;
+ BOOST_CHECK(typeid(mysig) == typeid(mysig2));
+ }
+
+ {
using namespace bs2::keywords;
bs2::signal_type<double (int), group_compare_type<std::less<float> >, group_type<float> >::type mysig;
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;
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