|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82912 - trunk/libs/optional/doc
From: steven_at_[hidden]
Date: 2013-02-15 13:50:29
Author: steven_watanabe
Date: 2013-02-15 13:50:29 EST (Fri, 15 Feb 2013)
New Revision: 82912
URL: http://svn.boost.org/trac/boost/changeset/82912
Log:
Replace deprecated function reset in examples. Fixes #765.
Text files modified:
trunk/libs/optional/doc/examples.qbk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/libs/optional/doc/examples.qbk
==============================================================================
--- trunk/libs/optional/doc/examples.qbk (original)
+++ trunk/libs/optional/doc/examples.qbk 2013-02-15 13:50:29 EST (Fri, 15 Feb 2013)
@@ -35,12 +35,12 @@
optional<string> name ;
if ( database.open() )
{
- name.reset ( database.lookup(employer_name) ) ;
+ name = database.lookup(employer_name) ;
}
else
{
if ( can_ask_user )
- name.reset ( user.ask(employer_name) ) ;
+ name = user.ask(employer_name) ;
}
if ( name )
@@ -63,7 +63,7 @@
void clip_in_rect ( rect const& rect )
{
....
- m_clipping_rect.reset ( rect ) ; // initialized here.
+ m_clipping_rect = rect ; // initialized here.
}
void draw ( canvas& cvs )
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk