| 78 | CAPIString operator=(const CAPIString&&) = delete; |
| 79 | |
| 80 | std::string str() const { |
| 81 | const char* c; |
| 82 | size_t size; |
| 83 | auto status = tiledb_status(tiledb_string_view(string_, &c, &size)); |
| 84 | if (status != TILEDB_OK) { |
| 85 | throw TileDBError( |
| 86 | "Could not view string; Error code: " + std::to_string(status)); |
| 87 | } |
| 88 | return {c, size}; |
| 89 | } |
| 90 | |
| 91 | private: |
| 92 | /** The C API string handle. Invariant: must not be null. */ |