Mark the whole class FormatError as FMT_API

Else on windows across DLLs the vtable is not visible which causes linking error
This commit is contained in:
Jean-Michaël Celerier
2018-05-09 12:07:20 +02:00
committed by Victor Zverovich
parent b6ac63faf0
commit 857b382fc3

View File

@ -710,12 +710,12 @@ typedef BasicCStringRef<char> CStringRef;
typedef BasicCStringRef<wchar_t> WCStringRef;
/** A formatting error such as invalid format string. */
class FormatError : public std::runtime_error {
class FMT_API FormatError : public std::runtime_error {
public:
explicit FormatError(CStringRef message)
: std::runtime_error(message.c_str()) {}
FormatError(const FormatError &ferr) : std::runtime_error(ferr) {}
FMT_API ~FormatError() FMT_DTOR_NOEXCEPT FMT_OVERRIDE;
~FormatError() FMT_DTOR_NOEXCEPT FMT_OVERRIDE;
};
namespace internal {