Skip to content

Commit

Permalink
Merge pull request #348 from LogicalKnight/fix-clang-extern-header-only
Browse files Browse the repository at this point in the history
Fix building with clang in header-only mode
  • Loading branch information
vitaut authored Jun 27, 2016
2 parents 116914a + 75f862b commit 44c926d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 44c926d

Please sign in to comment.