Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60416 - trunk/libs/signals2/example
From: fmhess_at_[hidden]
Date: 2010-03-10 08:58:36


Author: fmhess
Date: 2010-03-10 08:58:34 EST (Wed, 10 Mar 2010)
New Revision: 60416
URL: http://svn.boost.org/trac/boost/changeset/60416

Log:
Jamfile and compile fixes for example programs from Michael Caisse.

Added:
   trunk/libs/signals2/example/Jamfile.v2 (contents, props changed)
Text files modified:
   trunk/libs/signals2/example/disconnect_and_block.cpp | 1 +
   trunk/libs/signals2/example/doc_view_acm.cpp | 4 ++--
   2 files changed, 3 insertions(+), 2 deletions(-)

Added: trunk/libs/signals2/example/Jamfile.v2
==============================================================================
--- (empty file)
+++ trunk/libs/signals2/example/Jamfile.v2 2010-03-10 08:58:34 EST (Wed, 10 Mar 2010)
@@ -0,0 +1,42 @@
+# Boost.Signals2 example programs
+
+# Copyright Michael Caisse 2010
+# 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
+
+project : requirements <source>/boost//headers ;
+
+exe hello_world_slot : hello_world_slot.cpp ;
+
+exe hello_world_multi_slot : hello_world_multi_slot.cpp ;
+
+exe ordering_slots : ordering_slots.cpp ;
+
+exe passing_slots : passing_slots.cpp ;
+
+exe extended_slot : extended_slot.cpp ;
+
+exe custom_combiners : custom_combiners.cpp ;
+
+exe disconnect_and_block : disconnect_and_block.cpp ;
+
+exe doc_view : doc_view.cpp ;
+
+exe doc_view_acm : doc_view_acm.cpp ;
+
+exe doc_view_acm_deconstruct : doc_view_acm_deconstruct.cpp ;
+
+exe postconstructor_ex1 : postconstructor_ex1.cpp ;
+
+exe postconstructor_ex2 : postconstructor_ex2.cpp ;
+
+exe predestructor_example : predestructor_example.cpp ;
+
+exe signal_return_value : signal_return_value.cpp ;
+
+exe slot_arguments : slot_arguments.cpp ;
+

Modified: trunk/libs/signals2/example/disconnect_and_block.cpp
==============================================================================
--- trunk/libs/signals2/example/disconnect_and_block.cpp (original)
+++ trunk/libs/signals2/example/disconnect_and_block.cpp 2010-03-10 08:58:34 EST (Wed, 10 Mar 2010)
@@ -10,6 +10,7 @@
 
 #include <iostream>
 #include <boost/signals2/signal.hpp>
+#include <boost/signals2/shared_connection_block.hpp>
 
 struct HelloWorld
 {

Modified: trunk/libs/signals2/example/doc_view_acm.cpp
==============================================================================
--- trunk/libs/signals2/example/doc_view_acm.cpp (original)
+++ trunk/libs/signals2/example/doc_view_acm.cpp 2010-03-10 08:58:34 EST (Wed, 10 Mar 2010)
@@ -23,7 +23,7 @@
   typedef boost::signals2::signal<void ()> signal_t;
 
 public:
- document()
+ Document()
   {}
 
   /* connect a slot to the signal which will be emitted whenever
@@ -39,7 +39,7 @@
     m_sig();
   }
 
- const std::string& gettext() const
+ const std::string& getText() const
   {
     return m_text;
   }


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