Modify

Opened 7 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: cornedbee
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 7 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 7 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 7 years ago by cornedbee

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 7 years ago by cornedbee

  • Component changed from property_tree to multi_array
  • Milestone changed from Boost 1.43.0 to Boost 1.44.0
  • Resolution fixed deleted
  • Severity changed from Showstopper to Problem
  • Status changed from closed to reopened

Reassigning to multi_array for the issue in the comment.

comment:5 Changed 7 years ago by jewillco

  • Resolution set to fixed
  • Status changed from reopened to closed

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

comment:6 Changed 7 years ago by jewillco

(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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cornedbee.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.