Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 15th, 2005, 7:17 PM   #1
Vigil
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 Vigil is on a distinguished road
vectors in visual C++

When I implement this in my implementation file

std::vector<CStatic>text(80);

I get this error

ken7Dlg.cpp
c:\program files\microsoft visual studio\vc98\include\xmemory(34) : error C2558: class 'CStatic' : no copy constructor available
c:\program files\microsoft visual studio\vc98\include\xmemory(66) : see reference to function template instantiation 'void __cdecl std::_Construct(class CStatic *,const class CStatic &)' being compiled
Error executing cl.exe.

I looked in location of the error and there isn't a copy constructor. I also looked at the other constructor and destructor to get an idea of if i can write the copy constructor but i definitely can not.
Vigil is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC