online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> struct Person { Person() = default; Person(const Person&) { std::cout<<"copy constrcutor person called"<<std::endl; } }; struct Name { Name() = default; Name(const Name&) { std::cout<<"copy constructor Name called"<<std::endl; } }; template<class... Mixins> //---------------vvvvvvvvv---------->used as list of base classes from which X inherits publicly class X : public Mixins... { public: //-------------------------------vvvvvvvvvvvvvvvvv---->used as member initializer list X(const Mixins&... mixins) : Mixins(mixins)... { std::cout<<"constructor called"<<std::endl; } }; int main() { Person p; Name n; X<Person, Name> x(p, n); //or even just X x(p, n); works with C++17 due to CTAD 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