|
Boost Users : |
Subject: Re: [Boost-users] boost::bind for C function
From: Richard (legalize+jeeves_at_[hidden])
Date: 2012-12-20 18:31:58
[Please do not mail me a copy of your followup]
boost-users_at_[hidden] spake the secret code
<911E9779-6F81-4420-AC3D-BF023FDBB358_at_[hidden]> thusly:
>Hello,
>
>I have got a a C library function call, which defines a function:
>typedef int (*CFunction) (State* K);
>
>So I would like to use boost::bind / boost::function to create the binding
>to a class method:
>
>boost::function<CFunction>( boost::bind(&MyClass::myMethod, this) )
What happens if you try:
boost::function<int *(State *)>(boost::bind(...))?
-- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Computer Graphics Museum <http://computergraphicsmuseum.org> The Terminals Wiki <http://terminals.classiccmp.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net