Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- somewhere->register_call<MagicCode>( std::bind( std::bind( &Y::call_it
- , this
- , function )
- , std::ref(x_) );
- auto fobj = std::bind( &Y::call_it, this, function );
- fobj(); // Produces int
- somewhere->register_call<MagicCode>( std::bind(fobj, std::ref(x_) );
- // Trying to call int with X&?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement