|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - compiler bug?
Hello.
Here is a snippet of the code I am compiling(part of a commercial package):
template<class T>
class Vector
{
protected:
U32 mElementCount;
U32 mArraySize;
T* mArray;
bool resize(U32);
public:
Vector(const U32 initialSize = 0);
Vector(const U32 initialSize, const char* fileName, const U32 lineNum);
Vector(const char* fileName, const U32 lineNum);
Vector(const Vector&);
~Vector();
typedef T value_type;
typedef T& reference;
typedef const T& const_reference;
typedef T* iterator;
typedef const T* const_iterator;
typedef S32 difference_type;
typedef U32 size_type;
...
void insert(iterator, const T&);
void erase(iterator);
...
void push_front(const T&);
void push_back(const T&);
void pop_front();
void pop_back();
...
};
z:/torque/engine\core/tVector.h(102) : Error: type qualifiers and static
can only appear in outermost array of function parameter
z:/torque/engine\core/tVector.h(110) : Error: type qualifiers and static
can only appear in outermost array of function parameter
z:/torque/engine\core/tVector.h(111) : Error: type qualifiers and static
can only appear in outermost array of function parameter
line 102 is at the insert() function
line 110 is the push_front()
line 111 is the push_back()
What am I missing here? This library compiles fine with gcc,
metrowerks, and visual c++.
Thanks.
Jun 27 2004
Can you reproduce a complete code snippet I can compile to see the problem? thanks! Jun 27 2004
Walter wrote:Can you reproduce a complete code snippet I can compile to see the problem? thanks! Jun 28 2004
Walter wrote:I can take it from here, thanks! Jun 28 2004
"David Medlock" <amedlock nospam.org> wrote in message news:cbqf8b$2ohp$1 digitaldaemon.com...Walter wrote:I can take it from here, thanks! Jun 29 2004
|