dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: e_torstenson

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    5,375

    Re: STL Style function parameters?

    I think boost::function will work for what you need. It's actually what boost::thread uses, which is why I suggested it:P

    To be sure, I would write a short cpp file to test it, though. Then, you...
  2. Replies
    15
    Views
    5,375

    Re: STL Style function parameters?

    If you can use Boost, boost::function might work.

    The example at http://www.boost.org/doc/libs/1_39_0/doc/html/function/tutorial.html#id1849073 looks like it might apply. You could have a queue of...
  3. Replies
    15
    Views
    5,375

    Re: STL Style function parameters?

    Very cool! Your solution is probably the same as the one I came up with, just a little different in terms of usage syntax:



    #include <iostream>

    using namespace std;

    struct function {
    ...
  4. Replies
    15
    Views
    5,375

    STL Style function parameters?

    Hi,

    I really like how the STL allows you to toss in a struct with a certain function present and it will use it like a function pointer (i.e. the various operators for sorting routines etc).
    ...
Results 1 to 4 of 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)