Fix "undefined reference to `fmt::v7::detail::basic_data<void>::digits'"

Remove unused FMT_EXTERN_TEMPLATE_API
This commit is contained in:
Владислав Щапов
2021-06-01 01:50:42 +05:00
committed by Victor Zverovich
parent 7b9d69b827
commit f286139d22
6 changed files with 61 additions and 4 deletions

View File

@@ -902,7 +902,7 @@ template <typename T = void> struct basic_data {
FMT_API static constexpr const char right_padding_shifts[] = {0, 31, 0, 1, 0};
};
#ifndef FMT_HEADER_ONLY
#ifdef FMT_SHARED
// Required for -flto, -fivisibility=hidden and -shared to work
extern template struct basic_data<void>;
#endif