Click here to Skip to main content
15,891,687 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 3:21
Zac Howland13-Sep-06 3:21 
AnswerRe: STL Algorithms Pin
Kevin McFarlane13-Sep-06 4:08
Kevin McFarlane13-Sep-06 4:08 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 4:23
Zac Howland13-Sep-06 4:23 
GeneralRe: STL Algorithms Pin
Kevin McFarlane13-Sep-06 9:01
Kevin McFarlane13-Sep-06 9:01 
GeneralRe: STL Algorithms Pin
Zac Howland13-Sep-06 9:17
Zac Howland13-Sep-06 9:17 
AnswerRe: STL Algorithms Pin
Stephen Hewitt13-Sep-06 22:52
Stephen Hewitt13-Sep-06 22:52 
GeneralRe: STL Algorithms Pin
Rob Caldecott13-Sep-06 23:40
Rob Caldecott13-Sep-06 23:40 
GeneralRe: STL Algorithms Pin
Stuart Dootson14-Sep-06 1:17
professionalStuart Dootson14-Sep-06 1:17 
Robert Edward Caldecott wrote:
I am also investigating boost::lambda, but it seems to get more complicated when using containers of smart pointers


It does. If you're just using bind, then use boost::bind - it can cope with smart pointers (the boost ones at least!). Otherwise, I've defined macros to do bind the smart pointers get method, as below

#define VALUE(PTR) bind(&Symbols::ValuePtr::get, PTR)

   std::sort(allValues.begin(), allValues.end(), 
             bind(&Value::Address, VALUE(_1)) < bind(&Value::Address, VALUE(_2)));


I suspect Boost.Lambda won't change to cope with smart pointers (I don't know how active its main developer Jaako Jarvi is?). However, Joel de Guzman's developed somethng very similar for Boost.Spirit (it's called Phoenix) and I'm sure I've heard talk of that being merged with lambda...or something.

Best place to ask is on the Boost developers list, I guess...



GeneralRe: STL Algorithms Pin
Zac Howland14-Sep-06 3:17
Zac Howland14-Sep-06 3:17 
GeneralRe: STL Algorithms Pin
Nemanja Trifunovic15-Sep-06 4:43
Nemanja Trifunovic15-Sep-06 4:43 
GeneralRe: STL Algorithms Pin
Zac Howland15-Sep-06 5:26
Zac Howland15-Sep-06 5:26 
GeneralRe: STL Algorithms Pin
Stuart Dootson15-Sep-06 5:43
professionalStuart Dootson15-Sep-06 5:43 
GeneralRe: STL Algorithms Pin
Rob Caldecott17-Sep-06 23:49
Rob Caldecott17-Sep-06 23:49 
GeneralRe: STL Algorithms Pin
Stephen Hewitt18-Sep-06 0:34
Stephen Hewitt18-Sep-06 0:34 
GeneralRe: STL Algorithms Pin
Rob Caldecott18-Sep-06 4:06
Rob Caldecott18-Sep-06 4:06 
GeneralRe: STL Algorithms Pin
Stephen Hewitt18-Sep-06 13:48
Stephen Hewitt18-Sep-06 13:48 
GeneralRe: STL Algorithms Pin
Rob Caldecott19-Sep-06 0:03
Rob Caldecott19-Sep-06 0:03 
QuestionHyperlinks on MenuItems Pin
PrafullaT11-Sep-06 22:11
PrafullaT11-Sep-06 22:11 
AnswerRe: Hyperlinks on MenuItems Pin
Jörgen Sigvardsson12-Sep-06 1:44
Jörgen Sigvardsson12-Sep-06 1:44 
AnswerRe: Hyperlinks on MenuItems Pin
Hamid_RT15-Sep-06 21:42
Hamid_RT15-Sep-06 21:42 
Questionfopen problem in ATL Pin
_tasleem8-Sep-06 4:07
_tasleem8-Sep-06 4:07 
AnswerRe: fopen problem in ATL Pin
Rob Caldecott8-Sep-06 4:30
Rob Caldecott8-Sep-06 4:30 
GeneralRe: fopen problem in ATL Pin
Jörgen Sigvardsson11-Sep-06 2:25
Jörgen Sigvardsson11-Sep-06 2:25 
GeneralRe: fopen problem in ATL Pin
Stephen Hewitt11-Sep-06 14:46
Stephen Hewitt11-Sep-06 14:46 
GeneralRe: fopen problem in ATL Pin
Jörgen Sigvardsson11-Sep-06 15:06
Jörgen Sigvardsson11-Sep-06 15:06 

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.