|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49585 - in sandbox/thread_safe_signals/trunk/boost/signals2: . detail
From: fmhess_at_[hidden]
Date: 2008-11-04 11:37:45
Author: fmhess
Date: 2008-11-04 11:37:44 EST (Tue, 04 Nov 2008)
New Revision: 49585
URL: http://svn.boost.org/trac/boost/changeset/49585
Log:
Use boost::throw_exception instead of throw.
Text files modified:
sandbox/thread_safe_signals/trunk/boost/signals2/detail/signal_template.hpp | 4 ++--
sandbox/thread_safe_signals/trunk/boost/signals2/last_value.hpp | 7 ++++---
sandbox/thread_safe_signals/trunk/boost/signals2/signal.hpp | 1 +
sandbox/thread_safe_signals/trunk/boost/signals2/slot_base.hpp | 3 ++-
4 files changed, 9 insertions(+), 6 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/detail/signal_template.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/detail/signal_template.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/detail/signal_template.hpp 2008-11-04 11:37:44 EST (Tue, 04 Nov 2008)
@@ -647,14 +647,14 @@
{
shared_ptr<detail::BOOST_SIGNAL_IMPL_CLASS_NAME<BOOST_SIGNAL_TEMPLATE_INSTANTIATION> >
shared_pimpl(_weak_pimpl.lock());
- if(shared_pimpl == 0) throw expired_slot();
+ if(shared_pimpl == 0) boost::throw_exception(expired_slot());
return (*shared_pimpl)(BOOST_SIGNAL_SIGNATURE_ARG_NAMES(BOOST_SIGNALS_NUM_ARGS));
}
result_type operator ()(BOOST_SIGNAL_SIGNATURE_FULL_ARGS(BOOST_SIGNALS_NUM_ARGS)) const
{
shared_ptr<detail::BOOST_SIGNAL_IMPL_CLASS_NAME<BOOST_SIGNAL_TEMPLATE_INSTANTIATION> >
shared_pimpl(_weak_pimpl.lock());
- if(shared_pimpl == 0) throw expired_slot();
+ if(shared_pimpl == 0) boost::throw_exception(expired_slot());
return (*shared_pimpl)(BOOST_SIGNAL_SIGNATURE_ARG_NAMES(BOOST_SIGNALS_NUM_ARGS));
}
private:
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/last_value.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/last_value.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/last_value.hpp 2008-11-04 11:37:44 EST (Tue, 04 Nov 2008)
@@ -13,6 +13,7 @@
#include <boost/optional.hpp>
#include <boost/signals2/detail/result_type_wrapper.hpp>
+#include <boost/throw_exception.hpp>
#include <stdexcept>
namespace boost {
@@ -24,7 +25,7 @@
class no_slots_error: public std::exception
{
public:
- virtual const char* what() {return "boost::no_slots_error";}
+ virtual const char* what() {return "boost::signals2::no_slots_error";}
};
template<typename T>
@@ -37,7 +38,7 @@
T * resolver = 0;
if(first == last)
{
- throw no_slots_error();
+ boost::throw_exception(no_slots_error());
}
optional<T> value;
while (first != last)
@@ -50,7 +51,7 @@
++first;
}
if(value) return value.get();
- throw no_slots_error();
+ boost::throw_exception(no_slots_error());
}
};
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/signal.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/signal.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/signal.hpp 2008-11-04 11:37:44 EST (Tue, 04 Nov 2008)
@@ -35,6 +35,7 @@
#include <boost/signals2/connection.hpp>
#include <boost/signals2/shared_connection_block.hpp>
#include <boost/signals2/slot.hpp>
+#include <boost/throw_exception.hpp>
#include <boost/type_traits.hpp>
#include <functional>
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/slot_base.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/slot_base.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/slot_base.hpp 2008-11-04 11:37:44 EST (Tue, 04 Nov 2008)
@@ -15,6 +15,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/signals2/signal_base.hpp>
+#include <boost/throw_exception.hpp>
#include <vector>
namespace boost
@@ -49,7 +50,7 @@
}
catch(const bad_weak_ptr &)
{
- throw expired_slot();
+ boost::throw_exception(expired_slot());
}
}
return locked_objects;
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