Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 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>();

}

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by anonymous

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 Changed 8 years ago by anonymous

"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 Changed 8 years ago by Sebastian Redl

Resolution: fixed
Status: newclosed

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

comment:4 Changed 8 years ago by Sebastian Redl

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 Changed 7 years ago by Jeremiah Willcock

Resolution: fixed
Status: reopenedclosed

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

comment:6 Changed 7 years ago by Jeremiah Willcock

(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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Sebastian Redl.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.