// last_value function object (documented as part of Boost.Signals)
-// Copyright Doug Gregor 2001-2003. Use, modification and
+// Copyright Douglas Gregor 2001-2003. 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)
#define BOOST_LAST_VALUE_HPP
#include <cassert>
+#include <boost/config.hpp>
namespace boost {
template<typename T>
template<>
struct 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