From c283c778e6c9c067ac78b83aa56ab6dabad922a3 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Fri, 15 Feb 2013 18:44:59 +0000 Subject: [PATCH] Correct definition of operator unspecified-bool-type. Make reference for is_initialized point to this operator. Fixes #6364. [SVN r82911] --- doc/reference.qbk | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/doc/reference.qbk b/doc/reference.qbk index 5a7fd71..c8c96dd 100644 --- a/doc/reference.qbk +++ b/doc/reference.qbk @@ -658,7 +658,7 @@ __SPACE__ [: `optional::operator `['unspecified-bool-type]`() const ;`] * [*Returns:] An unspecified value which if used on a boolean context -is equivalent to (`get() != 0`) +is equivalent to (`get_ptr() != 0`) * [*Throws:] Nothing. * [*Example:] `` @@ -695,15 +695,7 @@ __SPACE__ [: `bool optional::is_initialized() const ;`] -* [*Returns: ] `true` if the `optional` is initialized, `false` otherwise. -* [*Throws:] Nothing. -* [*Example:] -`` -optional def ; -assert ( !def.is_initialized() ); -optional opt ( v ) ; -assert ( opt.is_initialized() ); -`` +* [*Deprecated:] Same as `operator `['unspecified-bool-type]`() ;` __SPACE__