Skip to content

VS2013 does not support 'noexcept' #290

Closed
@stevehickman

Description

reference: https://msdn.microsoft.com/en-us/library/wfa0edys(v=vs.120).aspx

Current develop branch contains numerous uses of 'noexcept' which causes compile errors. One possible workaround (See Ivan Ukr's response to this issue on StackOverflow

#if !defined(HAS_NOEXCEPT)
#if defined(__clang__)
#if __has_feature(cxx_noexcept)
#define HAS_NOEXCEPT
#endif
#else
#if defined(__GXX_EXPERIMENTAL_CXX0X__) && __GNUC__ * 10 + __GNUC_MINOR__ >= 46 || \
    defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 190023026
#define HAS_NOEXCEPT
#endif
#endif

#ifdef HAS_NOEXCEPT
#define NOEXCEPT noexcept
#else
#define NOEXCEPT
#endif

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions