Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56136 - trunk/boost/property_tree
From: sebastian.redl_at_[hidden]
Date: 2009-09-10 11:19:43


Author: cornedbee
Date: 2009-09-10 11:19:43 EDT (Thu, 10 Sep 2009)
New Revision: 56136
URL: http://svn.boost.org/trac/boost/changeset/56136

Log:
Initialize a member variable, fix lots of failing tests.
Text files modified:
   trunk/boost/property_tree/string_path.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/property_tree/string_path.hpp
==============================================================================
--- trunk/boost/property_tree/string_path.hpp (original)
+++ trunk/boost/property_tree/string_path.hpp 2009-09-10 11:19:43 EDT (Thu, 10 Sep 2009)
@@ -85,7 +85,7 @@
         typedef typename String::value_type char_type;
 
         /// Create an empty path.
- string_path();
+ explicit string_path(char_type separator = char_type('.'));
         /// Create a path by parsing the given string.
         /// @param value A sequence, possibly with separators, that describes
         /// the path, e.g. "one.two.three".
@@ -154,8 +154,8 @@
     };
 
     template <typename String, typename Translator> inline
- string_path<String, Translator>::string_path()
- : m_start(m_value.begin())
+ string_path<String, Translator>::string_path(char_type separator)
+ : m_separator(separator), m_start(m_value.begin())
     {}
 
     template <typename String, typename Translator> inline


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