mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-29 09:31:06 +00:00
Implement compatibility with compilers other than clang
This commit is contained in:
parent
5adb9f7a39
commit
6323d30247
7
format.h
7
format.h
@ -41,10 +41,17 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
// Compatibility with compilers other than clang.
|
||||
#ifndef __has_feature
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
// Define FMT_USE_NOEXCEPT to make format use noexcept (C++11 feature).
|
||||
#if FMT_USE_NOEXCEPT || \
|
||||
(defined(__has_feature) && __has_feature(cxx_noexcept))
|
||||
# define FMT_NOEXCEPT(expr) noexcept(expr)
|
||||
#else
|
||||
# define FMT_NOEXCEPT(expr)
|
||||
#endif
|
||||
|
||||
namespace fmt {
|
||||
|
Loading…
Reference in New Issue
Block a user