Commit 857b382f authored by Jean-Michaël Celerier's avatar Jean-Michaël Celerier Committed by Victor Zverovich

Mark the whole class FormatError as FMT_API

Else on windows across DLLs the vtable is not visible which causes linking error
parent b6ac63fa
...@@ -710,12 +710,12 @@ typedef BasicCStringRef<char> CStringRef; ...@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment