From c23251a4fe2a0c2bc57665436f1d79ff562ac06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Wed, 28 Jun 2023 20:46:46 -0400 Subject: [PATCH 1/7] refactor: return `std::bool_constant` from built-in `is` --- include/cpp2util.h | 56 +++++++++---------- regression-tests/mixed-type-safety-1.cpp2 | 13 ++--- .../test-results/mixed-type-safety-1.cpp | 22 +++----- 3 files changed, 39 insertions(+), 52 deletions(-) diff --git a/include/cpp2util.h b/include/cpp2util.h index 4e2323e236..1f397193b1 100644 --- a/include/cpp2util.h +++ b/include/cpp2util.h @@ -191,7 +191,7 @@ // in our -pure-cpp2 "import std;" simulation mode... if you need this, // use mixed mode (not -pure-cpp2) and #include all the headers you need // including this one - // + // // #include #endif @@ -464,7 +464,7 @@ template auto Typeid() -> decltype(auto) { #ifdef CPP2_NO_RTTI Type.expects( - !"'any' dynamic casting is disabled with -fno-rtti", // more likely to appear on console + !"'any' dynamic casting is disabled with -fno-rtti", // more likely to appear on console "'any' dynamic casting is disabled with -fno-rtti" // make message available to hooked handlers ); #else @@ -807,55 +807,55 @@ using empty = void; // Templates // template