online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <vector> #include <limits> class NamedBuffer { public: NamedBuffer(char const *n, uint64_t s) try : name(n) , buffer(s) { this->info(); } catch (std::exception const & e) { std::cout << e.what() << '\n'; exit(EXIT_FAILURE); } void info() { std::cout << "name : " << this->name << '\n'; std::cout << "size : " << this->buffer.size() << '\n'; } // ... private: std::string name; std::vector<uint8_t> buffer; // ... }; int main() { constexpr char const *name = "TestBuffer"; constexpr uint64_t size = std::numeric_limits<uint64_t>::max(); NamedBuffer nb(name, size); }

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