|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77360 - in trunk: boost/thread libs/thread/src
From: vicente.botet_at_[hidden]
Date: 2012-03-17 10:42:37
Author: viboes
Date: 2012-03-17 10:42:36 EDT (Sat, 17 Mar 2012)
New Revision: 77360
URL: http://svn.boost.org/trac/boost/changeset/77360
Log:
Thread: Avoid some warnings as unused variable it and warning C4275: non dll-interface class 'std::logic_error' used as base for dll-interface class 'boost::future_error'
Text files modified:
trunk/boost/thread/future.hpp | 13 ++++++++-----
trunk/libs/thread/src/future.cpp | 12 ------------
2 files changed, 8 insertions(+), 17 deletions(-)
Modified: trunk/boost/thread/future.hpp
==============================================================================
--- trunk/boost/thread/future.hpp (original)
+++ trunk/boost/thread/future.hpp 2012-03-17 10:42:36 EDT (Sat, 17 Mar 2012)
@@ -104,14 +104,17 @@
}
}
- class BOOST_THREAD_DECL future_error
+ class BOOST_SYMBOL_VISIBLE future_error
: public std::logic_error
{
system::error_code ec_;
public:
- future_error(system::error_code ec);
+ future_error(system::error_code ec)
+ : logic_error(ec.message()),
+ ec_(ec)
+ {
+ }
- BOOST_SYMBOL_VISIBLE
const system::error_code& code() const BOOST_NOEXCEPT
{
return ec_;
@@ -1624,7 +1627,7 @@
{
this->mark_finished_with_result(f());
}
- catch(thread_interrupted& it)
+ catch(thread_interrupted& )
{
this->mark_interrupted_finish();
}
@@ -1666,7 +1669,7 @@
f();
this->mark_finished_with_result();
}
- catch(thread_interrupted& it)
+ catch(thread_interrupted& )
{
this->mark_interrupted_finish();
}
Modified: trunk/libs/thread/src/future.cpp
==============================================================================
--- trunk/libs/thread/src/future.cpp (original)
+++ trunk/libs/thread/src/future.cpp 2012-03-17 10:42:36 EDT (Sat, 17 Mar 2012)
@@ -53,16 +53,4 @@
return f;
}
- future_error::future_error(system::error_code ec)
- : logic_error(ec.message()),
- ec_(ec)
- {
- }
-
-// future_error::~future_error() //BOOST_NOEXCEPT
-// {
-// }
-
-
-
}
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