Skip to content

Commit

Permalink
Fix windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Jan 22, 2024
1 parent 979da49 commit 67a16f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pantab/src/pantab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ template <typename OffsetT> class Utf8InsertHelper : public InsertHelper {
const struct ArrowBufferView buffer_view =
ArrowArrayViewGetBytesUnsafe(&array_view_, idx);
#if defined(_WIN32) && defined(_MSC_VER)
const auto result = std::string_view{
const auto result = std::string{
buffer_view.data.as_char, static_cast<size_t>(buffer_view.size_bytes)};
#else
const auto result = std::string{
const auto result = std::string_view{
buffer_view.data.as_char, static_cast<size_t>(buffer_view.size_bytes)};
#endif
hyperapi::internal::ValueInserter{*inserter_}.addValue(result);
Expand Down

0 comments on commit 67a16f7

Please sign in to comment.