fork(1) download
  1.  
  2. struct UndoableCommand { };
  3.  
  4. template <
  5. template <typename P1, typename P2> class CommandType,
  6. typename P1a, typename P2a>
  7. void createCommand(P1a p1, P2a p2)
  8. {
  9. UndoableCommand* cmdPtr = new CommandType<P1a,P2a>(p1, p2);
  10. }
  11.  
  12. template <typename P1, typename P2> class MyCommand : public UndoableCommand
  13. {
  14. public:
  15. MyCommand(P1, P2) { }
  16. };
  17.  
  18. int main()
  19. {
  20. createCommand<MyCommand>(1, 2.0);
  21. }
  22.  
Success #stdin #stdout 0.02s 2852KB
stdin
Standard input is empty
stdout
Standard output is empty