boost, bind, overloaded functions
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: boost, bind, overloaded functions

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    boost, bind, overloaded functions

    We have:
    class A
    {
    public:
    void f(int){}
    void f(double){}
    };
    Let's use this way:
    A a;
    boost::bind( mem_fun_res<void, A, int>(&A::f), &a, 10 );
    instead of:
    boost::bind( (( void(A::*)(int) )&A::f), &a, 10 );

  2. #2
    Join Date
    Aug 2007
    Posts
    858

    Re: boost, bind, overloaded functions

    It's hard to know what you need if you don't ask a question. But you may be looking for this: http://www.boost.org/doc/libs/1_38_0...err_overloaded

  3. #3
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: boost, bind, overloaded functions

    What is the function of bind() ?
    Thanks for your help.

  4. #4
    Join Date
    Aug 2007
    Posts
    858

    Re: boost, bind, overloaded functions

    Quote Originally Posted by Peter_APIIT View Post
    What is the function of bind() ?
    It's basically a tool for creating function objects. You can reroute the order of parameters, supply some parameters when you create the function object, that type of thing. Look here for more info: http://www.boost.org/doc/libs/1_38_0...bind/bind.html

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center