Ticket #1536: detail_ptree_implementation.hpp.patch.txt

File detail_ptree_implementation.hpp.patch.txt, 760 bytes (added by Ryan Gallagher <ryan.gallagher@…>, 15 years ago)

Small Patch for property_tree/detail/ptree_implemenation.hpp

Line 
1@@ -813,7 +813,7 @@
2 const key_type &path,
3 const std::locale &loc) const
4 {
5- return get_child(separator, path).get_own<Type>(loc);
6+ return get_child(separator, path).template get_own<Type>(loc);
7 }
8
9 // Get value from data of child ptree (custom path separator)
10@@ -852,7 +852,7 @@
11 const std::locale &loc) const
12 {
13 if (optional<const basic_ptree<Tr> &> child =
14get_child_optional(separator, path))
15- return child.get().get_own_optional<Type>(loc);
16+ return child.get().template get_own_optional<Type>(loc);
17 else
18 return optional<Type>();
19 }