diff options
Diffstat (limited to 'boost/spirit/home/classic/tree/impl/tree_to_xml.ipp')
-rw-r--r-- | boost/spirit/home/classic/tree/impl/tree_to_xml.ipp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp b/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp index 2f0da8bf44..36b7e10192 100644 --- a/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp +++ b/boost/spirit/home/classic/tree/impl/tree_to_xml.ipp @@ -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 @@ namespace impl { { 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 |