Skip to content

Commit e338d9a

Browse files
authored
noexcept specifier in function signature does not work correctly for MSVC compiler (#145)
1 parent aad43a9 commit e338d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rttr/detail/base/core_prerequisites.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace rttr
160160
# define RTTR_NO_CXX11_CONSTEXPR
161161
# define RTTR_NO_CXX14_CONSTEXPR
162162
# endif
163-
# if !defined(_HAS_CXX17) || _HAS_CXX17 == 0
163+
# if !defined(_MSVC_LANG) || (_MSVC_LANG < 201703L)
164164
# define RTTR_NO_CXX17_NOEXCEPT_FUNC_TYPE
165165
# endif
166166
#endif

0 commit comments

Comments
 (0)