|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71587 - sandbox/block_ptr/libs/smart_ptr/example
From: phil_at_[hidden]
Date: 2011-04-29 02:55:26
Author: pbouchard
Date: 2011-04-29 02:55:25 EDT (Fri, 29 Apr 2011)
New Revision: 71587
URL: http://svn.boost.org/trac/boost/changeset/71587
Log:
* Found & fixed invalid initialization of pointer with no set
Text files modified:
sandbox/block_ptr/libs/smart_ptr/example/t100_test1.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: sandbox/block_ptr/libs/smart_ptr/example/t100_test1.cpp
==============================================================================
--- sandbox/block_ptr/libs/smart_ptr/example/t100_test1.cpp (original)
+++ sandbox/block_ptr/libs/smart_ptr/example/t100_test1.cpp 2011-04-29 02:55:25 EDT (Fri, 29 Apr 2011)
@@ -18,7 +18,9 @@
int main(int argv, char * argc[])
{
- block_ptr<neuron_sight> t100 = new block<neuron_sight>("I eat ([a-z]+) then drink ([a-z]+)", new block<neuron_sight>("beef|chicken"), new block<neuron_sight>("vodka|water"));
+ block_ptr<neuron_sight> t100 = new block<neuron_sight>("I eat ([a-z]+) then drink ([a-z]+)");
+ t100->sub_[0].second = new block<neuron_sight>("beef|chicken");
+ t100->sub_[1].second = new block<neuron_sight>("vodka|water");
cout << (* t100)("I eat beef then drink wine") << endl;
cout << (* t100)("I eat beef then drink wine") << endl;
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