Fix call of a member function dependent on a template parameter.

We must make the access of 'push_back' dependent, too. Otherwise, name
lookup does not find the name. Earlier compilers were more permissive and
did find the name.
(cherry picked from upstream commit 5f55847d441aba7742417e78c3b4fbe8344acc5e)
pull/4/head
Johannes Sixt 9 years ago committed by Slávek Banko
parent 26a2a75988
commit a6469516e6
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -13,7 +13,7 @@ struct V : std::vector<T>
V(const T& v) : std::vector<T>(10, v) {}
void anotherone(const T& v)
{
push_back(v);
this->push_back(v);
}
};

Loading…
Cancel
Save