mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 18:57:34 +02:00
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:
committed by
Victor Zverovich
parent
b6ac63faf0
commit
857b382fc3
@ -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 {
|
||||
|
Reference in New Issue
Block a user