fmt/include/fmt
iPherian 8ab1c5c6e8 Squelch MSVC warning exporting subclasses of runtime_error (fix for PR #1433) (#1470)
* Squelch MSVC warning exporting subclasses of runtime_error

When compiling {fmt} as a DLL, MSVC complains that we are exporting
classes that inherit from "std::runtime_error", which we are not
exporting.

In this case, it's not really a problem because that symbol is already
exported via the C++ stdlib. So we just add a pragma to silence the
warning.

* Fix compilation with MinGW

Commit 3bc28fcc6b ("Squelch MSVC warning exporting subclasses of
runtime_error", 2019-11-29) silenced a MSVC warning under. The MinGW
compiler also defines _WIN32, but does not support the "warning" pragma.

Introduce a helper macro to squelch the MSVC warning only when using the
Microsoft compiler.

Signed-off-by: Beat Bolli <dev@drbeat.li>

* Fix compilation with VS2015 (#1450)

VS2015 does not support the __pragma(...) syntax in the midst of a
class declaration, so move it to just before the declaration.
2019-12-13 12:16:36 -08:00
..
chrono.h Clean-up sign-conversion warnings in public headers 2019-12-08 16:07:55 -08:00
color.h Remove dependency on <cassert> 2019-11-29 09:37:18 -08:00
compile.h Clean-up sign-conversion warnings in public headers 2019-12-08 16:07:55 -08:00
core.h Squelch MSVC warning exporting subclasses of runtime_error (fix for PR #1433) (#1470) 2019-12-13 12:16:36 -08:00
format-inl.h Remove unneeded FMT_API. 2019-12-03 05:55:04 -08:00
format.h Squelch MSVC warning exporting subclasses of runtime_error (fix for PR #1433) (#1470) 2019-12-13 12:16:36 -08:00
locale.h
ostream.h
posix.h Remove invalid noexcept annotation 2019-11-28 06:43:08 -08:00
printf.h Clean-up sign-conversion warnings in public headers 2019-12-08 16:07:55 -08:00
ranges.h