From ab0ffa1c011d89751095e13cbdfa5d030934fa07 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 dd01a96..cd0234c 100644 --- a/doc/reference.qbk +++ b/doc/reference.qbk @@ -660,7 +660,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:] `` @@ -697,15 +697,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__