> #include
should be
#include
> #include
should be
#include
for the rest, apply either of the proposed solutions by Tellef Fog Heen.
cheers
Uli
Peter S Galbraith wrote:
The following (template instantiations), lines 48 and 49 of a file
(which attached in full)
template.cc:48: non-template used as template
template.cc:49: non-template used as template
#include
Nit: #i
The following (template instantiations), lines 48 and 49 of a file
(which attached in full)
template void reverse(std::vector::iterator,
std::vector::iterator);
template void sort(std::vector::iterator, std::vector::iterator
compile in g++ 2.96, but they fail in g++ 3.0, with the error message:
* Peter S Galbraith
| : Any advice on how to change the code?
He's bitten by the namespaces thing. Adding std:: in front of vector
might fix it. Or 'using namespace std;'
--
Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.
I'm not a C++ hacker, and would appreciate any help on this.
In preparation for g++-3.0, I setup a Debian unstable chroot tree
on a friend's Red Hat system. He is upstream for the `gri'
package. It currently doesn't build on g++-3.0, and he wanted to
port the code.
He is stuck on a problem:
:
5 matches
Mail list logo