File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ inline const char *padded_string::data() const noexcept { return data_ptr; }
98
98
99
99
inline char *padded_string::data () noexcept { return data_ptr; }
100
100
101
- inline padded_string::operator std::string () const { return std::string (data (), length ()); }
101
+ inline padded_string::operator std::string_view () const { return std::string_view (data (), length ()); }
102
102
103
103
inline simdjson_result<padded_string> padded_string::load (const std::string &filename) noexcept {
104
104
// Open the file
Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ struct padded_string final {
90
90
char *data () noexcept ;
91
91
92
92
/* *
93
- * Create a new std::string with the same content.
93
+ * Create a std::string_view with the same content.
94
94
*/
95
- operator std::string () const ;
95
+ operator std::string_view () const ;
96
96
97
97
/* *
98
98
* Load this padded string from a file.
You can’t perform that action at this time.
0 commit comments