Click here to Skip to main content
15,890,527 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Boost Pin
Nemanja Trifunovic12-Jul-05 3:17
Nemanja Trifunovic12-Jul-05 3:17 
GeneralRe: Boost Pin
guypremont12-Jul-05 3:31
guypremont12-Jul-05 3:31 
GeneralRe: Boost Pin
Stuart Dootson12-Jul-05 8:30
professionalStuart Dootson12-Jul-05 8:30 
GeneralRe: Boost Pin
Rob Caldecott12-Jul-05 11:02
Rob Caldecott12-Jul-05 11:02 
GeneralRe: Boost Pin
CP Visitor12-Jul-05 22:41
CP Visitor12-Jul-05 22:41 
GeneralRe: Boost Pin
Rob Caldecott12-Jul-05 22:51
Rob Caldecott12-Jul-05 22:51 
GeneralRe: Boost Pin
CP Visitor13-Jul-05 6:28
CP Visitor13-Jul-05 6:28 
GeneralRe: Boost Pin
Rob Caldecott13-Jul-05 7:28
Rob Caldecott13-Jul-05 7:28 
CP Visitor wrote:

It's ok if it works for you. IMO, it's not really elegant that one has to write


Why not? You could always use typedef:

typedef boost::shared_ptr<CFoo> foo_sp;
...
v.push_back(foo_sp(new CFoo));


Elegant enough IMO, though people seem to either love or hate typedef. Using smart pointers in containers is very useful, and from experience, it has meant more time concentrating on the job at hand instead of tracking down memory leaks. I did use the ATL7 CAutoPtr class (and associated CAtlArray/CAtlList) but that's no help for writing portable code plus I prefer using STL iterators over MFC's 'POSITION' scheme. Shrug.

Whatever works I guess. But the more I use STL/Boost, the more I wonder why I went so long without it! Smile | :)
GeneralRe: Boost Pin
Joaquín M López Muñoz12-Jul-05 11:27
Joaquín M López Muñoz12-Jul-05 11:27 
GeneralRe: Boost Pin
Nemanja Trifunovic12-Jul-05 12:49
Nemanja Trifunovic12-Jul-05 12:49 
GeneralRe: Boost Pin
Nish Nishant13-Jul-05 19:46
sitebuilderNish Nishant13-Jul-05 19:46 
GeneralRe: Boost Pin
Stuart Dootson13-Jul-05 21:36
professionalStuart Dootson13-Jul-05 21:36 
GeneralRe: Boost Pin
Nish Nishant20-Jul-05 2:06
sitebuilderNish Nishant20-Jul-05 2:06 
Questionwmiatlprov.h documentation? Pin
Lego Bragis11-Jul-05 21:11
Lego Bragis11-Jul-05 21:11 
GeneralHandling ATL COM events in Win32 exe using eVC++ Pin
Gaganjit Singh Grewal11-Jul-05 20:02
Gaganjit Singh Grewal11-Jul-05 20:02 
QuestionCListViewCtrl: how to place background image? Pin
George Ulyanov8-Jul-05 18:02
George Ulyanov8-Jul-05 18:02 
AnswerRe: CListViewCtrl: how to place background image? Pin
Michael Dunn8-Jul-05 18:44
sitebuilderMichael Dunn8-Jul-05 18:44 
GeneralWTL - hosting ActiveX controls Pin
cberk8-Jul-05 12:22
cberk8-Jul-05 12:22 
GeneralRe: WTL - hosting ActiveX controls Pin
cberk8-Jul-05 13:10
cberk8-Jul-05 13:10 
GeneralRe: WTL - hosting ActiveX controls Pin
Michael Dunn8-Jul-05 18:49
sitebuilderMichael Dunn8-Jul-05 18:49 
Question[newbie] subclass std::list? Pin
ehh8-Jul-05 4:08
ehh8-Jul-05 4:08 
AnswerRe: [newbie] subclass std::list? Pin
Stuart Dootson8-Jul-05 7:48
professionalStuart Dootson8-Jul-05 7:48 
QuestionCOPY question??? Pin
Melena7-Jul-05 6:49
Melena7-Jul-05 6:49 
AnswerRe: COPY question??? Pin
Michael Dunn8-Jul-05 18:53
sitebuilderMichael Dunn8-Jul-05 18:53 
GeneralRe: COPY question??? Pin
Melena11-Jul-05 5:59
Melena11-Jul-05 5:59 

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.