From 323b92bffef75c9cf99dd8666bfc2f7e11fb8cb0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 3 Jul 2018 19:10:23 -0700 Subject: [PATCH] Force linking of inline functions into the library (#795) --- src/format.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/format.cc b/src/format.cc index 111c671e..f973c385 100644 --- a/src/format.cc +++ b/src/format.cc @@ -8,6 +8,11 @@ #include "fmt/format-inl.h" 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;