Skip to content

Commit cd5821f

Browse files
committed
Use string instead of string_view
1 parent c8f9ecd commit cd5821f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/serialize_null_array.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <optional>
77
#include <stdexcept>
88
#include <string>
9-
#include <string_view>
109
#include <vector>
1110

1211
#include "sparrow.hpp"
@@ -177,10 +176,10 @@ namespace sparrow_ipc
177176
throw std::runtime_error("Expected Null type in schema.");
178177
}
179178

180-
std::optional<std::string_view> name;
179+
std::optional<std::string> name;
181180
if (auto fb_name = field->name())
182181
{
183-
name = std::string_view(fb_name->c_str(), fb_name->size());
182+
name = std::string(fb_name->c_str(), fb_name->size());
184183
}
185184

186185
// std::optional<sparrow::key_value_metadata> metadata;

0 commit comments

Comments
 (0)