fork download
  1. #include <functional>
  2.  
  3. struct Instructions
  4. {
  5. std::function<void (float)> W;
  6. std::function<void (float)> X;
  7. std::function<void (float)> Y;
  8. std::function<void (int)> Z;
  9. };
  10.  
  11. void Z1(int x)
  12. {
  13. }
  14.  
  15. int main()
  16. {
  17. Instructions ins;
  18. ins.Z = Z1;
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty