From 9a97ffce52445e2b5f353cd632be30108cf1859e Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Sat, 7 Aug 2021 16:00:54 +0100 Subject: [PATCH] traits.h: Rename `TRUE` to `TRUE_TY` A workaround for `TRUE` being a `#define` in Windows headers. Fixes #62 --- include/dap/traits.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/dap/traits.h b/include/dap/traits.h index cbc7d39..6a0c20d 100644 --- a/include/dap/traits.h +++ b/include/dap/traits.h @@ -143,15 +143,15 @@ using CompatibleWith = std::integral_constant< template using EnableIf = typename std::enable_if::type; -// If `BASE` is a base of `T` then EnableIfIsType resolves to type `TRUE`, +// If `BASE` is a base of `T` then EnableIfIsType resolves to type `TRUE_TY`, // otherwise an invalid type. -template -using EnableIfIsType = EnableIf::value, TRUE>; +template +using EnableIfIsType = EnableIf::value, TRUE_TY>; // If the function-like `F` has a matching signature to the function-like `S` -// then EnableIfHasSignature resolves to type `TRUE`, otherwise an invalid type. -template -using EnableIfHasSignature = EnableIf::value, TRUE>; +// then EnableIfHasSignature resolves to type `TRUE_TY`, otherwise an invalid type. +template +using EnableIfHasSignature = EnableIf::value, TRUE_TY>; } // namespace traits } // namespace dap