From 0942b1a3666cca46051c255aa4ca5d76c8722546 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Fri, 3 Mar 2017 21:55:48 -0500 Subject: [PATCH] Move constexpr notes to a separate section --- doc/addressof.qbk | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/addressof.qbk b/doc/addressof.qbk index b0234ec..56ce3bb 100644 --- a/doc/addressof.qbk +++ b/doc/addressof.qbk @@ -29,15 +29,6 @@ avoids calling used-defined `operator&()`. `boost::addressof` was originally contributed by Brad King based on ideas from discussion with Doug Gregor. -In C++11 and above, `boost::addressof` is conditionally -`constexpr` when possible. This is indicated by -`BOOST_CORE_NO_CONSTEXPR_ADDRESSOF` not being defined. - -With supported compilers, `boost::addressof` is always -`constexpr` by leveraging compiler intrinsics. This is -indicated by `BOOST_CORE_HAS_BUILTIN_ADDRESSOF` being -defined. - [section Synopsis] `` @@ -69,6 +60,19 @@ void f() { [endsect] +[section Notes] + +In C++11 and above, `boost::addressof` is conditionally +`constexpr` when possible. This is indicated by +`BOOST_CORE_NO_CONSTEXPR_ADDRESSOF` not being defined. + +With supported compilers, `boost::addressof` is always +`constexpr` by leveraging compiler intrinsics. This is +indicated by `BOOST_CORE_HAS_BUILTIN_ADDRESSOF` being +defined. + +[endsect] + [endsect] [endsect]