online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include<map> #include<string> #include<vector> struct Vec3 { float x, y, z; }; template<typename Ty, typename... Args> Ty construct_class(Args&&... arguments) { return Ty{arguments...}; } // here I am trying to construct a Vec3 by calling construct_class Vec3 vec = construct_class<Vec3>(10.f, 20.f, 30.f); int main() { 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