mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-27 21:00:01 +01:00
Fix "undefined reference to `fmt::v7::detail::basic_data<void>::digits'"
Remove unused FMT_EXTERN_TEMPLATE_API
This commit is contained in:
committed by
Victor Zverovich
parent
7b9d69b827
commit
f286139d22
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user