Click here to Skip to main content
15,914,608 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: How do I read one vector from another? Pin
Michael Dunn16-Nov-03 18:46
sitebuilderMichael Dunn16-Nov-03 18:46 
GeneralRe: How do I read one vector from another? Pin
WREY16-Nov-03 21:44
WREY16-Nov-03 21:44 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 3:13
berndg17-Nov-03 3:13 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 8:19
WREY17-Nov-03 8:19 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 20:31
berndg17-Nov-03 20:31 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 22:07
WREY17-Nov-03 22:07 
GeneralRe: How do I read one vector from another? Pin
berndg17-Nov-03 22:25
berndg17-Nov-03 22:25 
GeneralRe: How do I read one vector from another? Pin
WREY17-Nov-03 23:28
WREY17-Nov-03 23:28 
First of all, I am not upset! I took your response and analyzed it for what it portrayed.

I am well aware that certain data should NOT be public. It makes good sense to me (for simplicity and ease of development) to make data public at first, and then when the program is working well, to go back and clean things up before releasing it to production. (It's my style, and it works well for me. Getting a program to work first is more important to me, followed by cleaning up and complying with conventions.)

"for_each()" is an STL algorithm. I had nothing to do with it being that name, and as far as having a "naming policy" goes, that is rather subjective, though I try to make mine as descriptive as possible (for what I'm doing).

With regards to whether a smart pointer is more suitable for what I'm doing, I believe it's a judgement call on my side. I am not overly eager to show people how things can be done by using esoteric tools as smart pointers. There is a time and a place for everything, and smart pointers will be the tool of the day when the time and the place call for it. Right now for what I'm doing, I believe it can be accomplished without the need for smart pointers.

On the matter of using "references", I mostly use them for passing data as parameters. Other than that, I prefer to deal with pointers. (Again it's my style, and may you live happily with yours.)

For a miniscule piece of code that was posted, I am amazed that you have taken to reading so much from it, with total absence to the remaining portion of the program relative to the tiny role this piece plays.

Confused | :confused:

William

Fortes in fide et opere!
GeneralRe: How do I read one vector from another? Pin
Andreas Saurwein21-Nov-03 11:31
Andreas Saurwein21-Nov-03 11:31 
GeneralRe: How do I read one vector from another? Pin
WREY24-Nov-03 14:48
WREY24-Nov-03 14:48 
GeneralRe: How do I read one vector from another? Pin
Andreas Saurwein24-Nov-03 15:33
Andreas Saurwein24-Nov-03 15:33 
QuestionWill sort method in STL cause memory disorder? Pin
Yu Yang15-Nov-03 9:40
Yu Yang15-Nov-03 9:40 
AnswerRe: Will sort method in STL cause memory disorder? Pin
jbarton17-Nov-03 5:20
jbarton17-Nov-03 5:20 
GeneralHINSTANCE Pin
alex.barylski15-Nov-03 8:36
alex.barylski15-Nov-03 8:36 
GeneralRe: HINSTANCE Pin
Michael Dunn15-Nov-03 16:39
sitebuilderMichael Dunn15-Nov-03 16:39 
GeneralCImageList Pin
alex.barylski14-Nov-03 14:47
alex.barylski14-Nov-03 14:47 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 16:00
sitebuilderMichael Dunn14-Nov-03 16:00 
GeneralRe: CImageList Pin
alex.barylski14-Nov-03 16:58
alex.barylski14-Nov-03 16:58 
GeneralRe: CImageList Pin
Michael Dunn14-Nov-03 18:20
sitebuilderMichael Dunn14-Nov-03 18:20 
GeneralRe: CImageList Pin
umeca7414-Nov-03 23:04
umeca7414-Nov-03 23:04 
GeneralEnter key in rich edit control Pin
ted_yu14-Nov-03 7:48
ted_yu14-Nov-03 7:48 
GeneralComposite control Drag & Drop Pin
Member 31248914-Nov-03 0:19
Member 31248914-Nov-03 0:19 
Generalini file Pin
jasu12-Nov-03 22:36
jasu12-Nov-03 22:36 
GeneralWTl in ATL 7 control Pin
Gabriel.P.G12-Nov-03 9:25
Gabriel.P.G12-Nov-03 9:25 
GeneralProblem with atl vc7 and sinkmap Pin
_Magnus_12-Nov-03 0:48
_Magnus_12-Nov-03 0:48 

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.