Guest User

Untitled

a guest
Jun 11th, 2018
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. template<class...Operations>
  4. struct super_any {};
  5.  
  6. auto print = make_any_method([](auto&& self, auto&& os){ os << self; });
  7.  
  8. using printable_any = super_any<decltype(print)>;
  9.  
  10. int main()
  11. {
  12. printable_any data = 12;
  13. (data->*print)(std::cout);
  14. }
RAW Paste Data