fork download
  1. #include <boost/phoenix/bind.hpp>
  2. #include <boost/range/regular.hpp>
  3.  
  4. struct A
  5. {
  6. typedef int result_type;
  7. int operator()() const { return 42; }
  8. };
  9.  
  10. int main()
  11. {
  12. boost::phoenix::bind(boost::range::regular(A()))(); // えらー
  13. }
  14.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty