From ab595cc8aaccb321c89b3d4721f5d6a626c8e97f Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 19 May 2022 12:32:09 +0200 Subject: [PATCH] Build fix on clang --- include/wrenpp/detail/StringCRC32.hpp | 4 ++-- include/wrenpp/detail/string_bt.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/wrenpp/detail/StringCRC32.hpp b/include/wrenpp/detail/StringCRC32.hpp index 6c3ac8c..fb67598 100644 --- a/include/wrenpp/detail/StringCRC32.hpp +++ b/include/wrenpp/detail/StringCRC32.hpp @@ -62,13 +62,13 @@ namespace duckcore { typedef BitArray<0, BitArray<1, BitArray<2, BitArray<4, BitArray<5, BitArray<7, BitArray<8, BitArray<10, BitArray<11, BitArray<12, BitArray<16, BitArray<22, BitArray<23, - BitArray<26, nullptr_t> > > > > > > > > > > > > > PolynomialBits; + BitArray<26, std::nullptr_t> > > > > > > > > > > > > > PolynomialBits; template struct MakePolynomial { enum { value = (1 << (M - P::value)) bitor MakePolynomial::value }; }; template - struct MakePolynomial { + struct MakePolynomial { enum { value = 0 }; }; diff --git a/include/wrenpp/detail/string_bt.hpp b/include/wrenpp/detail/string_bt.hpp index 6344d4c..689a651 100644 --- a/include/wrenpp/detail/string_bt.hpp +++ b/include/wrenpp/detail/string_bt.hpp @@ -56,7 +56,7 @@ namespace dhandy { template constexpr bool operator== (const string&) const { return false; } template - requires (std::is_same_v::value_type> && ...) + requires (std::is_same_v && ...) constexpr string ( Args... ); constexpr const value_type (&data_arr() const)[S] { return m_data; } @@ -110,8 +110,8 @@ namespace dhandy { template template - requires (std::is_same_v::value_type> && ...) - inline constexpr string::string (Args... parArgs) : + requires (std::is_same_v && ...) + constexpr inline string::string (Args... parArgs) : m_data{parArgs...} { }