Merge pull request #348 from LogicalKnight/fix-clang-extern-header-only

Fix building with clang in header-only mode
This commit is contained in:
Victor Zverovich 2016-06-27 09:21:16 -07:00 committed by GitHub
commit 44c926d96f

View File

@ -841,7 +841,7 @@ struct FMT_API BasicData {
# define FMT_USE_EXTERN_TEMPLATES (__clang__ && FMT_USE_VARIADIC_TEMPLATES)
#endif
#if FMT_USE_EXTERN_TEMPLATES
#if FMT_USE_EXTERN_TEMPLATES && !defined(FMT_HEADER_ONLY)
extern template struct BasicData<void>;
#endif