mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
13 lines
278 B
C++
13 lines
278 B
C++
#include "all.h"
|
|
|
|
SimpleStringOwner::SimpleStringOwner(const char* x) : string{ 10 } {
|
|
if (!string.append_line(x)) {
|
|
throw Error{ "Not enough memory!" };
|
|
}
|
|
string.print("Constructed");
|
|
}
|
|
|
|
SimpleStringOwner::~SimpleStringOwner() {
|
|
string.print("About to destroy");
|
|
}
|