online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <memory> template<typename T> struct A { }; struct B : public A<int> { }; template<typename T> bool validate(std::shared_ptr<A<T>> p) { return true; } int main() { std::shared_ptr<A<int>> pA = std::make_shared<A<int>>(); validate(pA); std::shared_ptr<B> pB = std::make_shared<B>(); validate(pB); }

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