Advertisement
Guest User

Untitled

a guest
Dec 26th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. somewhere->register_call<MagicCode>( std::bind( std::bind( &Y::call_it
  2. , this
  3. , function )
  4. , std::ref(x_) );
  5.  
  6. auto fobj = std::bind( &Y::call_it, this, function );
  7. fobj(); // Produces int
  8.  
  9. somewhere->register_call<MagicCode>( std::bind(fobj, std::ref(x_) );
  10. // Trying to call int with X&?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement