Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3989 closed Bugs (fixed)

Syntax error -- missing "template" keyword

Reported by: anonymous Owned by: Sebastian Redl
Milestone: Boost 1.44.0 Component: multi_array
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

Index: detail/ptree_implementation.hpp =================================================================== --- detail/ptree_implementation.hpp (revision 60372) +++ detail/ptree_implementation.hpp (working copy) @@ -770,7 +770,7 @@

Translator tr) const

{

if (optional<const self_type&> child = get_child_optional(path))

  • return child.get().get_value_optional<Type>(tr);

+ return child.get().template get_value_optional<Type>(tr);

else

return optional<Type>();

}

Change History (6)

comment:1 by anonymous, 13 years ago

Whoops, here's the patch in a more readable format.

Index: detail/ptree_implementation.hpp
===================================================================
--- detail/ptree_implementation.hpp	(revision 60372)
+++ detail/ptree_implementation.hpp	(working copy)
@@ -770,7 +770,7 @@
                                                          Translator tr) const
     {
         if (optional<const self_type&> child = get_child_optional(path))
-            return child.get().get_value_optional<Type>(tr);
+            return child.get().template get_value_optional<Type>(tr);
         else
             return optional<Type>();
     }

comment:2 by anonymous, 13 years ago

"libs/multi_array/example/for_each.hpp" is also missing a necessary keyword on this line:

    for_each(boost::type<TYPENAME Array::element>(),A.begin(),A.end(),xform);

comment:3 by Sebastian Redl, 12 years ago

Resolution: fixed
Status: newclosed

(In [61610]) Add a missing template keyword. Fixes bug 3989.

comment:4 by Sebastian Redl, 12 years ago

Component: property_treemulti_array
Milestone: Boost 1.43.0Boost 1.44.0
Resolution: fixed
Severity: ShowstopperProblem
Status: closedreopened

Reassigning to multi_array for the issue in the comment.

comment:5 by Jeremiah Willcock, 12 years ago

Resolution: fixed
Status: reopenedclosed

(In [62607]) Added missing typename; fixes #3989

comment:6 by Jeremiah Willcock, 12 years ago

(In [65771]) Merged r46508 (bug fixes), r53790 (added test case), r62605 (fix for #3581), r62606 (fix for #3820), r62607 (fix for #3989), r62609 (missing header), r62963 (non-Trac bug fixes) from trunk; refs #3581, #3820, #3989

Note: See TracTickets for help on using tickets.