online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <string> #include <utility> class Person { private: std::string m_name; public: Person(const char* name): m_name{name} {} Person(const Person& person) = delete; Person(Person&& person) = delete; // Person(const Person& person): m_name{person.m_name} { // std::cout << "COPY" << std::endl; // } // Person(Person &&person): m_name{std::move(person.m_name)} { // std::cout << "MOVE" << std::endl; // } std::string &getName() { return m_name; } }; void printName(Person person) { std::cout << person.getName() << std::endl; } int main() { printName(Person{"Sarah"}); 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