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)
Change History (4)
comment:1 by , 15 years ago
Type: | Bugs → Patches |
---|
by , 15 years ago
Attachment: | last_value.hpp.patch added |
---|
comment:2 by , 15 years ago
Owner: | set to |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.