online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include "Foo.hpp" #include <iostream> int main(int argc, char* argv[]) { Foo<int> foo; if (foo) std::cout << "works" << std::endl; }
template<class T> struct Foo { T x; explicit operator bool() const; };
#include "Foo.hpp" template <class T> Foo<T>::operator bool() const { return true; } template Foo<int>::operator bool() const;

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