From fe294afd78853c90be4e9235e54e6b6749a7e781 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 25 Nov 2010 10:39:02 +0000 Subject: [PATCH] Apply Vincente Botet's patches for BOOST_CONSTEXPR. [SVN r66746] --- doc/html/boost_config/acknowledgements.html | 4 +- .../boost_config/boost_macro_reference.html | 111 +++++++++++++++--- .../guidelines_for_boost_authors.html | 64 +++++----- doc/html/boost_config/rationale.html | 8 +- doc/html/index.html | 42 ++++--- doc/macro_reference.qbk | 32 +++++ include/boost/config/suffix.hpp | 14 +++ test/config_info.cpp | 21 +--- 8 files changed, 205 insertions(+), 91 deletions(-) diff --git a/doc/html/boost_config/acknowledgements.html b/doc/html/boost_config/acknowledgements.html index 87d6546a..95301d82 100644 --- a/doc/html/boost_config/acknowledgements.html +++ b/doc/html/boost_config/acknowledgements.html @@ -3,7 +3,7 @@ Acknowledgements - + @@ -21,7 +21,7 @@
PrevUpHome
-
+
diff --git a/doc/html/boost_config/boost_macro_reference.html b/doc/html/boost_config/boost_macro_reference.html index 28e23950..1ae8f0f8 100644 --- a/doc/html/boost_config/boost_macro_reference.html +++ b/doc/html/boost_config/boost_macro_reference.html @@ -3,7 +3,7 @@ Boost Macro Reference - + @@ -22,7 +22,7 @@
PrevUpHomeNext
-
+ -
+

+

+

Macros that describe defects @@ -1304,7 +1306,9 @@

-
+

+

+
-
+
-
+
-
+

+

+

Boost Helper Macros @@ -3214,10 +3220,83 @@

+ + +

+ BOOST_CONSTEXPR +

+ + +

+ Some compilers don't support the use of constexpr. + This macro expands to nothing on those compilers, and constexpr elsewhere. For example, + when defining a constexpr function or constructor replace: +

+
constexpr tuple();
+
+

+ with: +

+
BOOST_CONSTEXPR tuple();
+
+

+

+ + + + +

+ BOOST_CONSTEXPR_OR_CONST +

+ + +

+ Some compilers don't support the use of constexpr. + This macro expands to const + on those compilers, and constexpr + elsewhere. For example, when defining const expr variables replace: + +

+
static constexpr UIntType xor_mask = a;
+
+

+ with: +

+
static BOOST_CONSTEXPR_OR_CONST UIntType xor_mask = a;
+
+

+

+ + + + +

+ BOOST_STATIC_CONSTEXPR +

+ + +

+ This is a shortcut for static + BOOST_CONSTEXPR_OR_CONSTFor + example, when defining const expr variables replace: +

+
static constexpr UIntType xor_mask = a;
+
+

+ with: +

+
BOOST_STATIC_CONSTEXPR UIntType xor_mask = a;
+
+

+

+ +

-
+

+

+

Boost Informational Macros @@ -3585,7 +3664,7 @@

-
+

Macros for libraries with separate source code @@ -3602,14 +3681,14 @@ The following macros and helper headers are of use to authors whose libraries include separate source code, and are intended to address several issues:

-