fix compile with recent clang++ (still works with older g++)

This commit is contained in:
Dane Springmeyer 2012-11-08 15:05:51 -05:00
parent 6cfbabec18
commit efd002a3c6

View file

@ -814,7 +814,7 @@ namespace boost { namespace property_tree
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)
@ -853,7 +853,7 @@ namespace boost { namespace property_tree
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>();
}