This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
question about compiling with g++ 3.1 version
- From: Janos Murvai <murvai at ncbi dot nlm dot nih dot gov>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 20 May 2002 09:20:07 -0400 (EDT)
- Subject: question about compiling with g++ 3.1 version
Dear gcc users,
I tried to compile one program that is compilable with g++ 2.95.3
version..
The is problem with these lines:
class VectorMultiset {
typedef vector< multiset<unsigned long>* >::iterator VSI;
typedef vector< multiset<unsigned long>* >::const_iterator CVSI;
....
I got error message:
In file included from vertices.h:6,
from coalescent.h:13,
from Coalescent7.cc:5:
vectormultiset.h:13: ISO C++ forbids declaration of `vector' with no type
vectormultiset.h:13: template-id `vector<std::multiset<long unsigned int,
std::less<long unsigned int>, std::allocator<long unsigned int> >*>'
used as
a declarator
vectormultiset.h:13: parse error before `::' token
vectormultiset.h:14: non-template type `vector' used as a template
vectormultiset.h:14: ISO C++ forbids declaration of `const_iterator' with
no
type
vectormultiset.h:14: confused by earlier errors, bailing out
Exit 1
How I can do vector< multiset<unsigned long>* > in g++ 3.1 version?
Janos