This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
re-declaration and default args.
- From: larsbj at gullik dot net (Lars Gullik Bjønnes)
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 06 Jan 2004 19:09:55 +0100
- Subject: re-declaration and default args.
- Organization: LyX Developer http://www.lyx.org/
Is this supposed to compile, or should I create a PR?
I stumbled upon this when trying out boost::lambda with gcc 3.4.
#include <vector>
namespace std {
template <class T1, class T2> class vector;
}
class Foo {};
typedef std::vector<Foo> FooVec;
g++ -I../boost -O2 -c -o lambda.o lambda.C
lambda.C:10: error: wrong number of template arguments (1, should be 2)
lambda.C:5: error: provided for `template<class T1, class T2> struct std::vector'
lambda.C:10: error: ISO C++ forbids declaration of `FooVec' with no type
g++ --version
g++ (GCC) 3.4.0 20040105 (experimental)
--
Lgb