tuple is a dependent-name, and a call to a member function template of

tuple must be qualified with "template".
This commit is contained in:
Laurent Rineau 2010-05-17 16:15:17 +00:00
parent 303bf2211a
commit cadb6a589a
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ struct Nth_of_tuple_property_map
/// @commentheading Template Parameters:
/// @param Iter Type convertible to key_type.
template <class Iter>
reference operator[](Iter tuple) const { return (reference) tuple->get<N>(); }
reference operator[](Iter tuple) const { return (reference) tuple->template get<N>(); }
};
/// Free function to create a Nth_of_tuple_property_map property map.