Subject: [Boost-bugs] [Boost C++ Libraries] #1043: last_value<void>::result_type set to last_value<void>::unusable when it could be set to void
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-06-08 03:22:42
#1043: last_value<void>::result_type set to last_value<void>::unusable when it
could be set to void
------------------------------+---------------------------------------------
Reporter: srajko | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: signals
Version: | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Currently, last_value<void>::result_type is set to
last_value<void>::unusable. On compilers which support void returns, it
seems like it would be more beneficial to set it to void instead. I.e.,
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
...
Patch attached.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1043>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC