Skip to content

Commit 43f8220

Browse files
mdouzefacebook-github-bot
authored andcommitted
fix scopedeleter diff
Summary: It seems that for some build modes, swig chokes on static_assert, so protect this with #idndef SWIG. Let's see what the tests say.... Reviewed By: algoriddle Differential Revision: D50971042 fbshipit-source-id: 83e2ccb464c0bd024cbf3a494357147d75a76ca2
1 parent d3692d2 commit 43f8220

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

faiss/impl/platform_macros.h

-7
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,4 @@ inline int __builtin_clzll(uint64_t x) {
151151
#define FAISS_PRAGMA_IMPRECISE_FUNCTION_END
152152
#endif
153153

154-
#if defined(_MSC_VER) && defined(_MSVC_LANG)
155-
static_assert(_MSVC_LANG >= 201703L, "C++17 is expected");
156-
#else
157-
// make sure that at least C++17 is used
158-
static_assert(__cplusplus >= 201703L, "C++17 is expected");
159-
#endif
160-
161154
// clang-format on

0 commit comments

Comments
 (0)