Opened 15 years ago

Closed 15 years ago

#1043 closed Patches (fixed)

last_value<void>::result_type set to last_value<void>::unusable when it could be set to void

Reported by: Stjepan Rajko Owned by: Stjepan Rajko
Milestone: To Be Determined Component: signals
Version: Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

last_value.hpp.patch (774 bytes ) - added by Stjepan Rajko 15 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Stjepan Rajko, 15 years ago

Type: BugsPatches

by Stjepan Rajko, 15 years ago

Attachment: last_value.hpp.patch added

comment:2 by Stjepan Rajko, 15 years ago

Owner: set to Stjepan Rajko

comment:3 by Stjepan Rajko, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.