mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 11:17:35 +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;
|
typedef BasicCStringRef<wchar_t> WCStringRef;
|
||||||
|
|
||||||
/** A formatting error such as invalid format string. */
|
/** A formatting error such as invalid format string. */
|
||||||
class FormatError : public std::runtime_error {
|
class FMT_API FormatError : public std::runtime_error {
|
||||||
public:
|
public:
|
||||||
explicit FormatError(CStringRef message)
|
explicit FormatError(CStringRef message)
|
||||||
: std::runtime_error(message.c_str()) {}
|
: std::runtime_error(message.c_str()) {}
|
||||||
FormatError(const FormatError &ferr) : std::runtime_error(ferr) {}
|
FormatError(const FormatError &ferr) : std::runtime_error(ferr) {}
|
||||||
FMT_API ~FormatError() FMT_DTOR_NOEXCEPT FMT_OVERRIDE;
|
~FormatError() FMT_DTOR_NOEXCEPT FMT_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
Reference in New Issue
Block a user