From 26d278733f64e1004f6842d0a99a1c1f6fdaecb8 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 15 Jun 2013 06:59:30 +0000 Subject: [PATCH] Update documentation of Boost.Function and add info about rvalues (refs #8505) [SVN r84787] --- doc/history.xml | 9 ++++++++ doc/reference.xml | 58 +++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/doc/history.xml b/doc/history.xml index 05fddf8..75ecd42 100644 --- a/doc/history.xml +++ b/doc/history.xml @@ -13,6 +13,15 @@ + Version 1.52.0: + + Move constructors and move assignment + operators added (only for compilers with C++11 rvalue + references support). Original patch + contributed by Antony Polukhin. + + + Version 1.37.0: Improved the performance of Boost.Function's diff --git a/doc/reference.xml b/doc/reference.xml index c742403..843a25f 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -203,6 +203,15 @@ Will not throw unless copying the target of f throws. + + + functionN&& + + C++11 compatible compiler. + Moves the value from f to *this. If the argument has its function object allocated on the heap, its buffer will be assigned to *this leaving argument empty. + Will not throw unless argument has its function object allocated not on the heap and copying the target of f throws. + +