From 62be0de3d04b1843b9d63d99cd08c40360f8c1d7 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 6 Nov 2022 16:52:59 +0000 Subject: Workaround for incomplete or/and keyword support in VC++ --- Examples/test-suite/cpp17_enable_if_t.i | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Examples') diff --git a/Examples/test-suite/cpp17_enable_if_t.i b/Examples/test-suite/cpp17_enable_if_t.i index 307237549..b361775d0 100644 --- a/Examples/test-suite/cpp17_enable_if_t.i +++ b/Examples/test-suite/cpp17_enable_if_t.i @@ -3,6 +3,11 @@ // test use of enable_if_t but without full %template instantiation, that is no enable_if_t definition is parsed %inline %{ +#if defined(_MSC_VER) && _MSC_VER < 1920 +#define or || +#define and && +#endif + #include typedef int node_t; typedef int position_t; -- cgit v1.2.1