Skip to content

Commit

Permalink
Add warning supressions
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperWig committed Nov 7, 2019
1 parent 6b3903c commit 43bdaae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stl/inc/numbers
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
#include <type_traits>
#endif

#pragma pack(push, _CRT_PACKING)
#pragma warning(push, _STL_WARNING_LEVEL)
#pragma warning(disable : _STL_DISABLED_WARNINGS)
_STL_DISABLE_CLANG_WARNINGS
#pragma push_macro("new")
#undef new

_STD_BEGIN
namespace numbers {
#ifdef __cpp_lib_concepts
Expand Down Expand Up @@ -93,6 +100,10 @@ namespace numbers {
}
_STD_END

#pragma pop_macro("new")
_STL_RESTORE_CLANG_WARNINGS
#pragma warning(pop)
#pragma pack(pop)
#endif // _HAS_CXX20
#endif // _STL_COMPILER_PREPROCESSOR
#endif // _NUMBERS_

0 comments on commit 43bdaae

Please sign in to comment.