You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by John Muehlhausen <jg...@jgm.org> on 2022/07/13 01:32:26 UTC

std::string_view?

error: invalid operands to binary expression
('nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >' and
'basic_string_view<char>')

This from
   val == "str"sv

Is there a way to access a util::string_view as a std::string_view other
than re-building a std::string_view from data()/size() ?

-John

Re: std::string_view?

Posted by Micah Kornfield <em...@gmail.com>.
You can substitute the definition in Arrow There might be a few spots that
don't compile that use non-standard methods but I've been trying to clean
those up.

On Tuesday, July 12, 2022, John Muehlhausen <jg...@jgm.org> wrote:

> error: invalid operands to binary expression
> ('nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >' and
> 'basic_string_view<char>')
>
> This from
>    val == "str"sv
>
> Is there a way to access a util::string_view as a std::string_view other
> than re-building a std::string_view from data()/size() ?
>
> -John
>