We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478d903 commit 6d55743Copy full SHA for 6d55743
include/serialize.hpp
@@ -5,7 +5,6 @@
5
#include <optional>
6
#include <stdexcept>
7
#include <string>
8
-#include <string_view>
9
#include <vector>
10
11
#include "sparrow.hpp"
@@ -247,11 +246,11 @@ namespace sparrow_ipc
247
246
memcpy(data_buffer_copy, body_ptr + buffers_meta->Get(1)->offset(), data_len);
248
249
// Get name
250
- std::optional<std::string_view> name;
+ std::optional<std::string> name;
251
const flatbuffers::String* fb_name_flatbuffer = fields->Get(0)->name();
252
if (fb_name_flatbuffer)
253
{
254
- name = std::string_view(fb_name_flatbuffer->c_str(), fb_name_flatbuffer->size());
+ name = std::string(fb_name_flatbuffer->c_str(), fb_name_flatbuffer->size());
255
}
256
257
// Handle metadata
0 commit comments