Re: string_view and clang

2018-09-04 Thread maya
On Tue, Jun 12, 2018 at 12:32:30PM +0100, Patrick Welche wrote: > Great news! > > In the meantime, to try things out, I installed pkgsrc/lang/gcc8 and see: > > $ make > rm -f .gdbinit > touch .gdbinit > # compile ts/net.o > c++ -O2 -fPIE -Werror -std=c++14 -fPIC >

Re: string_view and clang

2018-06-08 Thread Kamil Rytarowski
On 08.06.2018 17:04, Patrick Welche wrote: > According to > > http://en.cppreference.com/w/cpp/compiler_support > > string_view is supported by gcc 7 and clang 4.0. As in NetBSD-current > base we have gcc 6.4.0 and clang 5.0.1, I thought I would try it out: > > $ clang -std=c++17 -o foo

string_view and clang

2018-06-08 Thread Patrick Welche
According to http://en.cppreference.com/w/cpp/compiler_support string_view is supported by gcc 7 and clang 4.0. As in NetBSD-current base we have gcc 6.4.0 and clang 5.0.1, I thought I would try it out: $ clang -std=c++17 -o foo foo.cpp foo.cpp:3:10: fatal error: 'string_view' file not found