your compiler is not C++11!



2017-05-13 12:11 GMT-04:00 Daniel Estermann via Boost-users <boost-users@lists.boost.org>:
Thanks for the minimal example hint. Here is what I get:

$ arm-unknown-linux-gnueabihf-gcc -xc++ - <<EOF
> #include <exception>
>
> std::exception_ptr x;
>
> int main() {}
>
> EOF
<stdin>:3:6: error: 'exception_ptr' in namespace 'std' does not name a type


2017-05-13 17:05 GMT+02:00 d25fe0be@outlook.com <d25fe0be@outlook.com>:
It may be worth to try to compile the following code snippet to see if your compiler is working as expected:

$ cat t.cpp
#include <exception>

std::exception_ptr x;

int main() {}
$ g++-6 ./t.cpp
$

Perhaps your compiler (or libstdc++) is broken in some way.

> On 13 May 2017, at 21:17, Daniel Estermann via Boost-users <boost-users@lists.boost.org> wrote:
>
> No matter if I add -std=c++11 to the flags, I still get the error message: http://sprunge.us/gSXb
> This is my compiler's configuration: http://sprunge.us/iaWZ
> I'm not sure how to check why C++11 code is used though.
>
>
>
> 2017-05-13 15:02 GMT+02:00 Oliver Kowalke via Boost-users <boost-users@lists.boost.org>:
> exception_ptr is part of C++11 but not used in boost.coroutine (and the fcontext-API of boost.context) -
> you could apply -std=c++11(cxxflags) or check why C++11 code is used
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> https://lists.boost.org/mailman/listinfo.cgi/boost-users




_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users



--
Daniel
L'action accède à la perfection quand, bien que vivant, vous êtes déjà mort
Bunan