forked from fmtlib/fmt
Workaround for broken [[deprecated]] in PGI compiler (#1581)
* Workaround broken [[deprecated]] in PGI compiler - similar to Intel and NVCC, add workaround for PGI compiler
This commit is contained in:
@ -147,8 +147,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Workaround broken [[deprecated]] in the Intel compiler and NVCC.
|
// Workaround broken [[deprecated]] in the Intel, PGI and NVCC compiler
|
||||||
#if defined(__INTEL_COMPILER) || FMT_NVCC
|
#if defined(__INTEL_COMPILER) || defined(__PGI) || FMT_NVCC
|
||||||
# define FMT_DEPRECATED_ALIAS
|
# define FMT_DEPRECATED_ALIAS
|
||||||
#else
|
#else
|
||||||
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
|
# define FMT_DEPRECATED_ALIAS FMT_DEPRECATED
|
||||||
@ -259,7 +259,8 @@ namespace internal {
|
|||||||
// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
|
// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
|
||||||
template <typename... Ts> struct void_t_impl { using type = void; };
|
template <typename... Ts> struct void_t_impl { using type = void; };
|
||||||
|
|
||||||
FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message);
|
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
||||||
|
const char* message);
|
||||||
|
|
||||||
#ifndef FMT_ASSERT
|
#ifndef FMT_ASSERT
|
||||||
# ifdef NDEBUG
|
# ifdef NDEBUG
|
||||||
|
Reference in New Issue
Block a user