|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60383 - trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2010-03-09 12:01:46
Author: fmhess
Date: 2010-03-09 12:01:45 EST (Tue, 09 Mar 2010)
New Revision: 60383
URL: http://svn.boost.org/trac/boost/changeset/60383
Log:
Fixed standard violations where I caught incomplete types.
Refs #3983.
Added:
trunk/boost/signals2/expired_slot.hpp (contents, props changed)
Text files modified:
trunk/boost/signals2/last_value.hpp | 2 +-
trunk/boost/signals2/optional_last_value.hpp | 2 +-
trunk/boost/signals2/slot_base.hpp | 10 +---------
3 files changed, 3 insertions(+), 11 deletions(-)
Added: trunk/boost/signals2/expired_slot.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/signals2/expired_slot.hpp 2010-03-09 12:01:45 EST (Tue, 09 Mar 2010)
@@ -0,0 +1,31 @@
+// Boost.Signals2 library
+
+// Copyright Frank Mori Hess 2007-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
+
+#ifndef BOOST_SIGNALS2_EXPIRED_SLOT_HPP
+#define BOOST_SIGNALS2_EXPIRED_SLOT_HPP
+
+#include <boost/smart_ptr/bad_weak_ptr.hpp>
+
+namespace boost
+{
+ namespace signals2
+ {
+ class expired_slot: public bad_weak_ptr
+ {
+ public:
+ virtual char const * what() const throw()
+ {
+ return "boost::signals2::expired_slot";
+ }
+ };
+ }
+} // end namespace boost
+
+#endif // BOOST_SIGNALS2_EXPIRED_SLOT_HPP
Modified: trunk/boost/signals2/last_value.hpp
==============================================================================
--- trunk/boost/signals2/last_value.hpp (original)
+++ trunk/boost/signals2/last_value.hpp 2010-03-09 12:01:45 EST (Tue, 09 Mar 2010)
@@ -12,12 +12,12 @@
#define BOOST_SIGNALS2_LAST_VALUE_HPP
#include <boost/optional.hpp>
+#include <boost/signals2/expired_slot.hpp>
#include <boost/throw_exception.hpp>
#include <stdexcept>
namespace boost {
namespace signals2 {
- class expired_slot;
// no_slots_error is thrown when we are unable to generate a return value
// due to no slots being connected to the signal.
Modified: trunk/boost/signals2/optional_last_value.hpp
==============================================================================
--- trunk/boost/signals2/optional_last_value.hpp (original)
+++ trunk/boost/signals2/optional_last_value.hpp 2010-03-09 12:01:45 EST (Tue, 09 Mar 2010)
@@ -12,10 +12,10 @@
#define BOOST_SIGNALS2_OPTIONAL_LAST_VALUE_HPP
#include <boost/optional.hpp>
+#include <boost/signals2/expired_slot.hpp>
namespace boost {
namespace signals2 {
- class expired_slot;
template<typename T>
class optional_last_value
Modified: trunk/boost/signals2/slot_base.hpp
==============================================================================
--- trunk/boost/signals2/slot_base.hpp (original)
+++ trunk/boost/signals2/slot_base.hpp 2010-03-09 12:01:45 EST (Tue, 09 Mar 2010)
@@ -16,6 +16,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/signals2/detail/foreign_ptr.hpp>
+#include <boost/signals2/expired_slot.hpp>
#include <boost/signals2/signal_base.hpp>
#include <boost/throw_exception.hpp>
#include <boost/mpl/not.hpp> // work around missing include in Boost.Variant headers
@@ -55,15 +56,6 @@
};
}
- class expired_slot: public bad_weak_ptr
- {
- public:
- virtual char const * what() const throw()
- {
- return "boost::signals2::expired_slot";
- }
- };
-
class slot_base
{
public:
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