Selene icon indicating copy to clipboard operation
Selene copied to clipboard

MSVC 2013 doesn't support noexcept sadly

Open Zardoz89 opened this issue 10 years ago • 2 comments

On include/selene/Selector.h a simple change of Selector destructor from :

~Selector() noexcept(false) {

To :

#if def _MSC_VER && _MSC_VER <= 1800 // VStudio 2013 fix
~Selector() {
#else
~Selector() noexcept(false) {
#endif

Or redefine noexcept(X) to empty if _MSC_VER && _MSC_VER <= 1800

Should fix it.

This comes from here : https://github.com/Zardoz89/Selene/pull/1

Zardoz89 avatar Nov 11 '15 11:11 Zardoz89

Better to define a macro for noexcept itself rather than condition every use of it

MrSapps avatar Sep 05 '16 17:09 MrSapps

This issue was moved to DontBelieveMe/Selene#5

DontBelieveMe avatar Oct 17 '16 18:10 DontBelieveMe