From d390e2c5441f1967a34fe80b222957fdbe7b9c12 Mon Sep 17 00:00:00 2001 From: Christos Houtouridis Date: Sat, 12 Jan 2019 19:16:19 +0200 Subject: [PATCH] Change _C template parameter. Cygwin ctype.h use it as macro. --- include/utl/meta/if.h | 8 ++++---- include/utl/meta/sfinae.h | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/utl/meta/if.h b/include/utl/meta/if.h index ccc9a80..a82a878 100644 --- a/include/utl/meta/if.h +++ b/include/utl/meta/if.h @@ -31,9 +31,9 @@ //! @{ namespace utl { - //! select _T1 or _T2 based on _C + //! select _T1 or _T2 based on _Sel //! @{ - template + template struct select_ { typedef _T1 type; }; @@ -44,9 +44,9 @@ namespace utl { }; //! @} - //! select _Tp if _C is true, else SFINAE + //! select _Tp if _Check is true, else SFINAE //! @{ - template + template struct if_ { typedef _Tp type; }; diff --git a/include/utl/meta/sfinae.h b/include/utl/meta/sfinae.h index e58b9e5..9ec6dc1 100644 --- a/include/utl/meta/sfinae.h +++ b/include/utl/meta/sfinae.h @@ -55,16 +55,16 @@ namespace utl { //! @} //! Alias template for if_ - template - using if_t = typename if_<_C, _Tp>::type; + template + using if_t = typename if_<_Check, _Tp>::type; //! Publicly recognized alias template for if_ - template - using enable_if_t = typename if_<_C, _Tp>::type; + template + using enable_if_t = typename if_<_Check, _Tp>::type; //! Uniform alias template for if_ - template - using use_if_t = typename if_<_C, _Tp>::type; + template + using use_if_t = typename if_<_Check, _Tp>::type; //! If same type resolves to _Ret, else SFINAE template