Skip to content

Commit

Permalink
Disable MSVC warning about multiple copy ctors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 6, 2013
1 parent 383a842 commit 39cc99e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions format.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
# pragma GCC diagnostic ignored "-Wlong-long"
#endif

#if _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4521)
#endif
namespace fmt {

namespace internal {
Expand Down Expand Up @@ -1244,4 +1248,8 @@ inline Formatter<Write> Print(StringRef format) {
# pragma GCC diagnostic pop
#endif

#if _MSC_VER
# pragma warning(pop)
#endif

#endif // FORMAT_H_

1 comment on commit 39cc99e

@charliedurrant
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, thanks for the fix - appreciated. Charles UK

Please sign in to comment.