|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2008-08-26 22:23:19
Author: fmhess
Date: 2008-08-26 22:23:19 EDT (Tue, 26 Aug 2008)
New Revision: 48402
URL: http://svn.boost.org/trac/boost/changeset/48402
Log:
Only make last_value<void> define non-void type for result_type
if BOOST_NO_VOID_RETURNS
is defined.
Text files modified:
sandbox/thread_safe_signals/boost/last_value.hpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: sandbox/thread_safe_signals/boost/last_value.hpp
==============================================================================
--- sandbox/thread_safe_signals/boost/last_value.hpp (original)
+++ sandbox/thread_safe_signals/boost/last_value.hpp 2008-08-26 22:23:19 EDT (Tue, 26 Aug 2008)
@@ -65,12 +65,15 @@
};
template<>
- struct last_value<void> {
+ class last_value<void> {
+#ifdef BOOST_NO_VOID_RETURNS
struct unusable {};
-
public:
typedef unusable result_type;
-
+#else
+ public:
+ typedef void result_type;
+#endif // BOOST_NO_VOID_RETURNS
template<typename InputIterator>
result_type
operator()(InputIterator first, InputIterator last) const
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