martinrotter/textosaurus

string_view is only available with C++17

andr1972 opened this issue · 2 comments

Brief description of the issue.

In C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\string_view:11 is error:
#if !_HAS_CXX17
#error string_view is only available with C++17.
#endif /* _HAS_CXX17 */

I tried
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++17
in build.pro
and
CONFIG += c++1z
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++17
in libtextosaurus.pro
but this not helps.

Must be something in configuration of your build tools, because compilation just works with vanilla MSVC 2017 and also AppVeyor is able to compile without any extra tinkering.

Also the flag to force use of latest available C++ specs is already set here.

I stumbled upon this too!!!! It had to somehow arose when I updated my MSVC toolchain.

Anyway, its fixed now!!!