Bug with vectors

A

Alex

Hello,

I'm working in VS 6.0. During the debuging output console gave me line
like this (there are 17 of them, all of them belong to folder include
in VC98):

:\program files\microsoft visual studio\vc98\include\new(36) : error
C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\vc98\include\new(36) : error
C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\new(36) : error
C2809: 'operator new' has no formal parameters
c:\program files\microsoft visual studio\vc98\include\new(37) : error
C2059: syntax error : 'constant'
c:\program files\microsoft visual studio\vc98\include\new(38) : error
C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\new(38) : error
C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const
struct std::nothrow_t &)' : overloaded function differs only by return
type from 'void *(__cdecl *__cdecl op
erator new(void))(unsigned int)'.....................

I noticed one thing. When I remove this two lines (situatuated on the
beggining of header class):

#include <vector>
using std::vector;

it's all OK. I can't understand where the problem is. I left project
settings default.
 
A

Alex

Sorry people, I realized where bug was...Before #include <vector> I
included some headers from library that I use in project. Very smart :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top