Thanks to Steven Watanabe /permissive- Fixed the Microsoft problem. Now compiles and runs. Ian -----Original Message----- From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Steven Watanabe via Boost-users Sent: 26 June 2018 00:57 To: ian D Chivers via Boost-users Cc: Steven Watanabe Subject: Re: [Boost-users] query regarding parallel algorithms and error message AMDG On 06/25/2018 12:49 PM, ian D Chivers via Boost-users wrote:
$ g++ -Ofast -std=c++11 -Wl,--stack,0x100000000 ch3604.cxx ch3604.cxx: In function ‘int main()’: ch3604.cxx:155:16: error: ‘parallel_stable_sort’ is not a member of ‘boost::sort’ boost::sort::parallel_stable_sort( x.begin() , x.end() ); ^~~~~~~~~~~~~~~~~~~~
Are you sure that you're not missing a #include?
It works for me.
#include
<snip> gcc version 7.3.0 (GCC) <snip> Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26129 for x64 <snip>
ch3604.cxx
C:\Program Files\boost\boost_1_67_0\boost/sort/parallel_stable_sort/parallel_stable_sort.hpp(132): error C2146: syntax error: missing ')' before identifier 'or'
<snip>
I presume that if I replace the or with something belonging to an earlier standard that this may get me a bit further.
`or` was a keyword in C++98 (See [lex.digraph]). Try compiling with /permissive- In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users