prog.cpp: In function ‘int main()’:
prog.cpp:7:25: error: ‘string_view’ is not a member of ‘std’
auto str = std::string_view{""};
^~~~~~~~~~~
prog.cpp:7:25: note: ‘std::string_view’ is only available from C++17 onwards
prog.cpp:9:52: error: ‘string_view’ is not a member of ‘std’
for( boost::algorithm::split_iterator<std::string_view::iterator> i
^~~~~~~~~~~
prog.cpp:9:52: note: ‘std::string_view’ is only available from C++17 onwards
prog.cpp:9:52: error: ‘string_view’ is not a member of ‘std’
prog.cpp:9:52: note: ‘std::string_view’ is only available from C++17 onwards
prog.cpp:9:73: error: template argument 1 is invalid
for( boost::algorithm::split_iterator<std::string_view::iterator> i
^
prog.cpp:12:57: error: ‘string_view’ is not a member of ‘std’
i != boost::algorithm::split_iterator<std::string_view::iterator>();
^~~~~~~~~~~
prog.cpp:12:57: note: ‘std::string_view’ is only available from C++17 onwards
prog.cpp:12:57: error: ‘string_view’ is not a member of ‘std’
prog.cpp:12:57: note: ‘std::string_view’ is only available from C++17 onwards
prog.cpp:12:78: error: template argument 1 is invalid
i != boost::algorithm::split_iterator<std::string_view::iterator>();
^
prog.cpp:15:31: error: invalid type argument of unary ‘*’ (have ‘int’)
std::cout << *i << '\n';
^