Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85415 - in trunk/boost/spirit/home: classic/tree/impl lex/lexer/lexertl
From: joel_at_[hidden]
Date: 2013-08-21 09:34:03


Author: djowel
Date: 2013-08-21 09:34:02 EDT (Wed, 21 Aug 2013)
New Revision: 85415
URL: http://svn.boost.org/trac/boost/changeset/85415

Log:
Fixes #9027

Text files modified:
   trunk/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp | 3 ++-
   trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp | 3 ++-
   2 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp
==============================================================================
--- trunk/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp Wed Aug 21 06:49:40 2013 (r85414)
+++ trunk/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp 2013-08-21 09:34:02 EDT (Wed, 21 Aug 2013) (r85415)
@@ -21,6 +21,7 @@
 #include <iostream>
 #include <boost/config.hpp>
 #include <boost/assert.hpp>
+#include <boost/scoped_array.hpp>
 
 #ifdef BOOST_NO_STRINGSTREAM
 #include <strstream>
@@ -68,7 +69,7 @@
         {
             using namespace std; // some systems have size_t in ns std
             size_t len = strlen(source);
- std::auto_ptr<wchar_t> result (new wchar_t[len+1]);
+ boost::scoped_array<wchar_t> result (new wchar_t[len+1]);
             result.get()[len] = '\0';
 
             // working with wide character streams is supported only if the

Modified: trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp Wed Aug 21 06:49:40 2013 (r85414)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp 2013-08-21 09:34:02 EDT (Wed, 21 Aug 2013) (r85415)
@@ -20,6 +20,7 @@
 #include <boost/spirit/home/lex/lexer/lexertl/static_version.hpp>
 #include <boost/algorithm/string.hpp>
 #include <boost/lexical_cast.hpp>
+#include <boost/scoped_array.hpp>
 
 ///////////////////////////////////////////////////////////////////////////////
 namespace boost { namespace spirit { namespace lex { namespace lexertl
@@ -50,7 +51,7 @@
         {
             using namespace std; // some systems have size_t in ns std
             size_t len = strlen(source);
- std::auto_ptr<wchar_t> result (new wchar_t[len+1]);
+ boost::scoped_array<wchar_t> result (new wchar_t[len+1]);
             result.get()[len] = '\0';
 
             // working with wide character streams is supported only if the


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