Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75628 - branches/quickbook-dev/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-11-22 18:49:43


Author: danieljames
Date: 2011-11-22 18:49:43 EST (Tue, 22 Nov 2011)
New Revision: 75628
URL: http://svn.boost.org/trac/boost/changeset/75628

Log:
Quickbook: Quickbook values are always references now.

And store an intrusive pointer to they maintain the lifetime of the
text they refer to.
Text files modified:
   branches/quickbook-dev/tools/quickbook/src/actions.cpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: branches/quickbook-dev/tools/quickbook/src/actions.cpp
==============================================================================
--- branches/quickbook-dev/tools/quickbook/src/actions.cpp (original)
+++ branches/quickbook-dev/tools/quickbook/src/actions.cpp 2011-11-22 18:49:43 EST (Tue, 22 Nov 2011)
@@ -1018,9 +1018,7 @@
                     value new_arg(
                         qbk_value(last_arg.get_file(),
                             pos.second, end, template_tags::phrase));
-
- // TODO: Make sure that this is overwriting a reference, not
- // a value.
+
                     args.back() = qbk_value(last_arg.get_file(),
                         begin, pos.first, last_arg.get_tag());
                     args.push_back(new_arg);


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