From 11d03f3b51f625be5916886ca2e95030f146d8c9 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sun, 24 Feb 2019 03:42:11 +0300 Subject: [PATCH] Added macro to docs --- doc/reference/recursive_wrapper.xml | 19 +++++++++++++++++++ doc/reference/variant.xml | 20 ++++++++++++-------- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/doc/reference/recursive_wrapper.xml b/doc/reference/recursive_wrapper.xml index 798b591..ea1c7bd 100644 --- a/doc/reference/recursive_wrapper.xml +++ b/doc/reference/recursive_wrapper.xml @@ -212,6 +212,8 @@ Returns true when *this contains a value. + Note: When BOOST_VARIANT_NO_RECURSIVE_WRAPPER_POINTER_STEALING + compatibility macro is defined – always returns false. Will not throw. @@ -309,4 +311,21 @@ + + + + A backward-compatibility/migration macro for reverting to the + previous never-empty recursive_wrapper. + + + + Defining the macro disables recursive_wrapper pointer + stealing from an other recursive_wrapper on move + construction. + + + Not defined by default. Appeared in Boost 1.70. + + + diff --git a/doc/reference/variant.xml b/doc/reference/variant.xml index f8b8355..53d98d8 100644 --- a/doc/reference/variant.xml +++ b/doc/reference/variant.xml @@ -508,14 +508,18 @@ bool - - false: when is not a recursive variant - – it always contains exactly one of its bounded types. - (See for more - information.) - true: when a recursive variant - value was moved out. - + + + false: when is not a recursive variant + – it always contains exactly one of its bounded types. + (See for more + information.) + true: when a recursive variant + value was moved out. + + Note: When BOOST_VARIANT_NO_RECURSIVE_WRAPPER_POINTER_STEALING + compatibility macro is defined – always returns false. + Facilitates generic compatibility with