Boost logo

Boost :

From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2007-12-11 17:43:24


Using rev5 from the vault of this library I ran into a minor issue when
compiling for gcc 3.3. I can compile code against this for msvc71 both before
and after the patch.

BTW, while I know its accepted to Boost, is this library to be in 1.35? Thanks,

-Ryan

Unified diff on property_tree/detail/ptree_implementation.hpp:

@@ -813,7 +813,7 @@
                                   const key_type &path,
                                   const std::locale &loc) const
     {
- return get_child(separator, path).get_own<Type>(loc);
+ return get_child(separator, path).template get_own<Type>(loc);
     }

     // Get value from data of child ptree (custom path separator)
@@ -852,7 +852,7 @@
                                           const std::locale &loc) const
     {
         if (optional<const basic_ptree<Tr> &> child =
get_child_optional(separator, path))
- return child.get().get_own_optional<Type>(loc);
+ return child.get().template get_own_optional<Type>(loc);
         else
             return optional<Type>();
     }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk