A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N4178
Date: 2014-10-07
Proposed resolution for Core Issue 330: Qualification conversions and pointers to arrays of pointers
by Jens Maurer
Excerpt:
This paper presents the proposed resolution for core issue 330 as reviewed in teleconferences of WG21's Core Working Group, substantially cleaning up the wording around qualification converions. Other than allowing the qualification conversions asked for in the issue, it also changes
reinterpret_cast
so that it may now cast away constness. For example,reinterpret_cast<int *>((const void *)0)is ill-formed in C++14 due to the provision in 5.2.10 [expr.reinterpret.cast] paragraph 2 "The
reinterpret_cast
operator shall not cast away constness (5.2.11 expr.const.cast)". The wording changes below will remove this restriction, thus the example above will become well-formed. Given the general nature ofreinterpret_cast
, the restriction on casting away constness appeared as a rather odd constraint.
Add a Comment
Comments are closed.