On 01/01/17 15:53 +0100, Jakub Jelinek wrote:
On Sun, Jan 01, 2017 at 10:27:24AM -0400, Gerald Pfeifer wrote:
On Fri, 7 Oct 2016, Jakub Jelinek wrote:
> The following patch adds __builtin_addressof with the semantics it has in
> clang, i.e. it is a constexpr & operator alternative that never uses the
> overloaded & operator.
Nice!
Are you planning to document this in gcc-7/changes.html ?
We shouldn't document the builtin, but that std::addressof is usable in
constexpr contexts. I'll defer documentation thereof to Jon, together with
other libstdc++ changes.
I've committed this to wwwdocs.
? htdocs/gcc-7/.changes.html.swp
Index: htdocs/gcc-7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.32
diff -u -r1.32 changes.html
--- htdocs/gcc-7/changes.html 27 Nov 2016 12:54:13 -0000 1.32
+++ htdocs/gcc-7/changes.html 3 Jan 2017 10:54:01 -0000
@@ -287,13 +287,30 @@
<code>std::chrono::round</code>, and <code>std::chrono::abs</code>;
</li>
<li>
- <code>std::clamp</code>;
+ <code>std::clamp</code>, <code>std::gcd</code>, <code>std::lcm</code>,
+ 3-dimensional <code>std::hypot</code>;
+ </li>
+ <li><code>std::shared_mutex</code>;</li>
+ <li><code>std::default_searcher</code>,
+ <code>std::boyer_moore_searcher</code> and
+ <code>std::boyer_moore_horspool_searcher</code>;
+ </li>
+ <li>
+ Extraction and re-insertion of map and set nodes, <code>try_emplace</code>
+ members for maps, and functions for accessing containers
+ <code>std::size</code>, <code>std::empty</code>, and
+ <code>std::data</code>;
</li>
<li>
+ <code>std::shared_ptr</code> support for arrays,
<code>std::shared_ptr<T>::weak_type</code>,
<code>std::enable_shared_from_this<T>::weak_from_this()</code>,
and <code>std::owner_less<void></code>;
</li>
+ <li><code>std::as_const</code>, <code>std::not_fn</code>,
+ <code>std::has_unique_object_representations</code>,
+ constexpr <code>std::addressof</code>.
+ </li>
</ul>
Thanks to Daniel Krügler, Tim Shen, Edward Smith-Rowland, and Ville Voutilainen for
work on the C++17 support.