Modify

Ticket #3989 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Change History

comment:1 Changed 4 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 4 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 4 years ago by cornedbee

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

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

comment:4 Changed 4 years ago by cornedbee

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

Reassigning to multi_array for the issue in the comment.

comment:5 Changed 4 years ago by jewillco

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

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

comment:6 Changed 4 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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.