Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: directory browser Pin
ns19-Aug-02 10:41
ns19-Aug-02 10:41 
GeneralRe: directory browser Pin
Ravi Bhavnani19-Aug-02 11:48
professionalRavi Bhavnani19-Aug-02 11:48 
GeneralRe: directory browser Pin
ns20-Aug-02 1:47
ns20-Aug-02 1:47 
GeneralRe: directory browser Pin
ns20-Aug-02 2:15
ns20-Aug-02 2:15 
GeneralRe: directory browser Pin
Ravi Bhavnani20-Aug-02 4:37
professionalRavi Bhavnani20-Aug-02 4:37 
GeneralSTL vector push_back( ) copy c'stor question Pin
JohnnyG19-Aug-02 10:05
JohnnyG19-Aug-02 10:05 
GeneralRe: STL vector push_back( ) copy c'stor question Pin
Tomasz Sowinski19-Aug-02 10:15
Tomasz Sowinski19-Aug-02 10:15 
GeneralRe: STL vector push_back( ) copy c'stor question Pin
Stuart Dootson19-Aug-02 14:17
professionalStuart Dootson19-Aug-02 14:17 
The compiler provides default copy constructor & assignment operator - they take the form of copying/assigning each member of the class. For your class, the compiler-supplied methods would be fine, as you've only got POD(Plain Old Datatype) data members.

The copy constructor will never call the assignment operator unless that's the way you implement it. In addition, I think vector implements element insertion (which is what push_back calls down to) without using the assignment operator (i.e. copy constructor only).

It's probably all working OK - the STL tends to most of the time Big Grin | :-D

Stuart Dootson

'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
GeneralRe: STL vector push_back( ) copy c'stor question Pin
JohnnyG20-Aug-02 4:25
JohnnyG20-Aug-02 4:25 
GeneralWinsock: Socket disconnection Pin
Le centriste19-Aug-02 9:37
Le centriste19-Aug-02 9:37 
GeneralRe: Winsock: Socket disconnection Pin
Ernest Laurentin19-Aug-02 9:52
Ernest Laurentin19-Aug-02 9:52 
GeneralRe: Winsock: Socket disconnection Pin
unregistered19-Aug-02 19:49
unregistered19-Aug-02 19:49 
GeneralToolbar in Internet Explorer Pin
Tzoockee19-Aug-02 9:22
Tzoockee19-Aug-02 9:22 
GeneralRe: Toolbar in Internet Explorer Pin
Michael Dunn19-Aug-02 10:53
sitebuilderMichael Dunn19-Aug-02 10:53 
QuestionHow to know the user switch to another MDI child window? Pin
Vincent Ye19-Aug-02 8:40
Vincent Ye19-Aug-02 8:40 
AnswerRe: How to know the user switch to another MDI child window? Pin
Neville Franks19-Aug-02 10:49
Neville Franks19-Aug-02 10:49 
GeneralTransform WORD data to UNICODE Pin
Eugene Pustovoyt19-Aug-02 8:05
Eugene Pustovoyt19-Aug-02 8:05 
GeneralRe: Transform WORD data to UNICODE Pin
Stuart Dootson19-Aug-02 8:28
professionalStuart Dootson19-Aug-02 8:28 
GeneralRe: Transform WORD data to UNICODE Pin
Michael Dunn19-Aug-02 10:54
sitebuilderMichael Dunn19-Aug-02 10:54 
GeneralRe: Transform WORD data to UNICODE Pin
Eugene Pustovoyt19-Aug-02 19:24
Eugene Pustovoyt19-Aug-02 19:24 
Generaladdchunk doesnt exist --blob question Pin
ns19-Aug-02 7:52
ns19-Aug-02 7:52 
GeneralRe: addchunk doesnt exist --blob question Pin
Joel Lucsy19-Aug-02 17:58
Joel Lucsy19-Aug-02 17:58 
GeneralSend messages over msn network Pin
JDMoore19-Aug-02 7:41
JDMoore19-Aug-02 7:41 
GeneralCloseHandle on thread handle Pin
Le centriste19-Aug-02 7:37
Le centriste19-Aug-02 7:37 
GeneralRe: CloseHandle on thread handle Pin
Ernest Laurentin19-Aug-02 7:47
Ernest Laurentin19-Aug-02 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.