mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-10 20:30:00 +08:00
Use noexcept unconditionally
This commit is contained in:
parent
a126b4d888
commit
2a09d468da
@ -145,23 +145,9 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
|
|
||||||
#ifndef FMT_USE_NOEXCEPT
|
|
||||||
# define FMT_USE_NOEXCEPT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
|
|
||||||
FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
|
|
||||||
# define FMT_DETECTED_NOEXCEPT noexcept
|
|
||||||
# define FMT_HAS_CXX11_NOEXCEPT 1
|
|
||||||
#else
|
|
||||||
# define FMT_DETECTED_NOEXCEPT throw()
|
|
||||||
# define FMT_HAS_CXX11_NOEXCEPT 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FMT_NOEXCEPT
|
#ifndef FMT_NOEXCEPT
|
||||||
# if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
|
# if FMT_EXCEPTIONS
|
||||||
# define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
|
# define FMT_NOEXCEPT noexcept
|
||||||
# else
|
# else
|
||||||
# define FMT_NOEXCEPT
|
# define FMT_NOEXCEPT
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user