Force linking of inline functions into the library (#795)

This commit is contained in:
Victor Zverovich 2018-07-03 19:10:23 -07:00
parent c6d9730ddb
commit 323b92bffe

View File

@ -8,6 +8,11 @@
#include "fmt/format-inl.h" #include "fmt/format-inl.h"
FMT_BEGIN_NAMESPACE FMT_BEGIN_NAMESPACE
namespace internal {
// Force linking of inline functions into the library.
std::string (*vformat_ref)(string_view, format_args) = vformat;
std::wstring (*vformat_wref)(wstring_view, wformat_args) = vformat;
}
template struct internal::basic_data<void>; template struct internal::basic_data<void>;