Created on 2016-01-14.00:00:00 last changed 24 months ago
Rationale (November, 2016):
The specification is as intended.
Suggested resolution:
Change in 7.6.1.10 [expr.reinterpret.cast] paragraph 2 as follows:
... An expression ofintegralarithmetic, enumeration, pointer, or pointer-to-member type can be explicitly converted to its own type; such a cast yields the value of its operand.
Consider this inconsistency:
void func(long l, float f) { (void)reinterpret_cast<long *>(&l); // ok (void)reinterpret_cast<long>(l); // ok (void)reinterpret_cast<float *>(&f); // ok (void)reinterpret_cast<float>(f); // ill-formed }
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-11-20 07:54:16 | admin | set | messages: + msg7036 |
2018-02-27 00:00:00 | admin | set | messages: + msg6005 |
2018-02-27 00:00:00 | admin | set | status: open -> nad |
2016-01-14 00:00:00 | admin | create |