Re: [eigen] Dynamic exception specifications are deprecated in C++11 mode and other warnings

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On 23.08.2014 15:28, Nicola Gigante wrote:
The last time I've looked, I've seen some move constructor conditionally
declared in C++11 mode, but now I can't find them. How do you support
move semantics in C++11 mode without testing the language version?

For GCC we do check the value of __cplusplus, but we do not have any C++11 support in the 3.2 branch (that might be the reason, you couldn't find any ...)
Here is were we determine if we have RValue (i.e. 'move') support:
https://bitbucket.org/eigen/eigen/src/51c2effe19bd54186b8b39c34004ad3f28d7dbdd/Eigen/src/Core/util/Macros.h?at=default#cl-121


Regarding your original question, we already define some compiler-dependent attributes/declspecs in src/Core/util/Macros.h and I would not object introducing EIGEN_NORETURN and EIGEN_NOTHROW macros (at least in the dev-branch). The 3.2 branch should generally only receive bug-fixes. We could still introduce these macros, but there are generally no plans to make it support C++1x features.


Christoph


--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/