From 7e0b8145b51221bcae49f83d0ab53722c9056044 Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Sat, 24 Oct 2020 17:17:10 +0200 Subject: [PATCH] boost::none is constexpr-declared --- doc/21_ref_none.qbk | 4 +- doc/91_relnotes.qbk | 12 ++++-- doc/html/boost_optional/acknowledgements.html | 4 +- .../dependencies_and_portability.html | 4 +- ...emplace_operations_in_older_compilers.html | 4 +- .../optional_reference_binding.html | 4 +- doc/html/boost_optional/quick_start.html | 4 +- ...sing_unnecessary_default_construction.html | 4 +- .../optional_automatic_variables.html | 4 +- .../quick_start/optional_data_members.html | 4 +- .../quick_start/storage_in_containers.html | 4 +- ...ost_optional_bad_optional_access_hpp_.html | 4 +- .../detailed_semantics.html | 4 +- .../header__boost_optional_hpp_.html | 4 +- ...der__boost_optional_optional_fwd_hpp_.html | 4 +- .../detailed_semantics___free_functions.html | 4 +- ...ailed_semantics___optional_references.html | 4 +- .../detailed_semantics___optional_values.html | 4 +- .../header_optional_in_place_init.html | 4 +- .../header_optional_optional_refs.html | 4 +- .../header_optional_optional_values.html | 4 +- .../boost_optional/reference/io_header.html | 4 +- .../reference/io_header/io_semantics.html | 14 +++---- doc/html/boost_optional/relnotes.html | 42 ++++++++++++------- .../tutorial/design_overview.html | 12 +++--- .../design_overview/the_interface.html | 8 ++-- .../design_overview/the_semantics.html | 4 +- .../tutorial/exception_safety_guarantees.html | 4 +- doc/html/boost_optional/tutorial/gotchas.html | 6 +-- ...e_positive_with__wmaybe_uninitialized.html | 4 +- .../gotchas/mixed_relational_comparisons.html | 4 +- .../gotchas/moved_from__optional_.html | 4 +- .../tutorial/in_place_factories.html | 4 +- .../boost_optional/tutorial/io_operators.html | 4 +- .../tutorial/optional_references.html | 4 +- ...for_assignment_of_optional_references.html | 4 +- .../tutorial/performance_considerations.html | 4 +- .../tutorial/relational_operators.html | 4 +- .../tutorial/type_requirements.html | 4 +- .../tutorial/when_to_use_optional.html | 4 +- doc/html/index.html | 8 ++-- doc/html/optional/reference.html | 6 +-- .../header__boost_optional_optional_hpp_.html | 4 +- doc/html/optional/tutorial.html | 4 +- include/boost/none.hpp | 7 ++-- 45 files changed, 139 insertions(+), 120 deletions(-) diff --git a/doc/21_ref_none.qbk b/doc/21_ref_none.qbk index 011eff7..65eaa81 100644 --- a/doc/21_ref_none.qbk +++ b/doc/21_ref_none.qbk @@ -17,8 +17,8 @@ namespace boost { class none_t {/* see below */}; -const none_t none (/* see below */); - +inline constexpr none_t none (/* see below */); + } // namespace boost ``` diff --git a/doc/91_relnotes.qbk b/doc/91_relnotes.qbk index e4a5eaa..79f881f 100644 --- a/doc/91_relnotes.qbk +++ b/doc/91_relnotes.qbk @@ -11,18 +11,24 @@ [section:relnotes Release Notes] +[heading Boost Release 1.75] + +* `boost::none` is `constexpr`-declared. + +* Fixed [@https://github.com/boostorg/optional/issues/78 issue #78]. + [heading Boost Release 1.73] * Fixed [@https://github.com/boostorg/optional/issues/78 issue #78]. -* `boost::none` is now declared as an inline variable (on compilers taht support it): there is only one instance of `boost::none` across all translation units. +* `boost::none` is now declared as an inline variable (on compilers taht support it): there is only one instance of `boost::none` across all translation units. * Fixed a number of compilation errors in GCC 4.4.7 in `optional` for trivial `T`s. Thanks to Robert Leahy for the fix. For details see [@https://github.com/boostorg/optional/pull/80 pr #78]. -* Now surpressing warning `-Wweak-vtables`. +* Now surpressing warning `-Wweak-vtables`. [heading Boost Release 1.69] * Remove deprecation mark from `reset()` method (without arguments). * Fixed [@https://github.com/boostorg/optional/issues/59 issue #59]. -* Fixed bug with initialization of certain wrapper types in clang with -std=c++03. See [@https://github.com/boostorg/optional/pull/64 pr #64]. +* Fixed bug with initialization of certain wrapper types in clang with -std=c++03. See [@https://github.com/boostorg/optional/pull/64 pr #64]. [heading Boost Release 1.68] diff --git a/doc/html/boost_optional/acknowledgements.html b/doc/html/boost_optional/acknowledgements.html index c6f9f2f..eff2ed8 100644 --- a/doc/html/boost_optional/acknowledgements.html +++ b/doc/html/boost_optional/acknowledgements.html @@ -1,6 +1,6 @@ - + Acknowledgements @@ -116,7 +116,7 @@ -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-