On Wed, May 2, 2012 at 6:57 AM, Raymond Wooninck
On 05/02/2012 06:50 AM, Ilya Chernykh wrote:
=== tstring.h:102:3: error: 'make_pair' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from /usr/include/c++/4.7/utility:72:0, from /usr/include/c++/4.7/algorithm:61, from expander.cpp:13: /usr/include/c++/4.7/bits/stl_pair.h:284:5: note: 'template
std::pair<_T1, _T2> std::make_pair(_T1, _T2)' declared here, later in the translation unit === Replace all occurances of "make_pair" with "std:make_pair". This would resolve your issue.
This got me thinking "how come?", and then I noticed:
The OP had mistakenly copypasted half of one error message and half of another.
In context, the error:
In file included from expander.h:20:0,
from expander.cpp:15:
tstring.h: In instantiation of 'void TagString_t<T>::insertTag(uint,
const T&) [with T = QStringList; uint = unsigned int]':
expander.cpp:797:21: required from here
tstring.h:111:2: error: 'make_pair' was not declared in this scope,
and no declarations were found by argument-dependent lookup at the
point of instantiation [-fpermissive]
Then the clarification:
In file included from /usr/include/c++/4.7/utility:72:0,
from /usr/include/c++/4.7/algorithm:61,
from expander.cpp:13:
/usr/include/c++/4.7/bits/stl_pair.h:284:5: note: 'template