Disable false positives in MSVC compilation

This commit is contained in:
Patrick Urbanke
2023-12-03 20:16:42 +01:00
parent 395118de92
commit b84453a099
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -1,6 +1,12 @@
#ifndef RFL_RFL_HPP_
#define RFL_RFL_HPP_
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4244)
#pragma warning(disable : 4101)
#endif
#include "rfl/AllOf.hpp"
#include "rfl/AnyOf.hpp"
#include "rfl/Box.hpp"
@@ -40,4 +46,8 @@
#include "rfl/to_named_tuple.hpp"
#include "rfl/visit.hpp"
#ifdef _MSC_VER
#pragma warning(push)
#endif
#endif
@@ -1126,4 +1126,8 @@ constexpr auto get_field_name_ptrs() {
} // namespace internal
} // namespace rfl
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif