online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> class Actions { public: Actions(){} void doSmthg(){ std::cout<<"do something called"<<std::endl; } }; class Button { public: Button() {}; template<typename T> void onClick(void (T::*callbackPtr)(), T obj){ std::cout<<"button clicked"<<std::endl; //call the function on the passed object (obj.*callbackPtr)(); } }; int main() { Actions action; Button button;; button.onClick<Actions>(&Actions::doSmthg, action); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue