[glacier] Add default constructor for a string.

This commit is contained in:
Drew Galbraith 2023-10-13 15:03:35 -07:00
parent 28a6d543ec
commit fdd2d693bc
2 changed files with 3 additions and 0 deletions

View file

@ -14,6 +14,8 @@ uint64_t cstrlen(const char* cstr) {
} // namespace
String::String() : cstr_(nullptr), length_(0) {}
String::String(const char* str) : String(str, cstrlen(str)) {}
String::String(const char* cstr, uint64_t str_len) : length_(str_len) {