Build fix on clang

This commit is contained in:
King_DuckZ 2022-05-19 12:32:09 +02:00
parent 65fee858dd
commit 678624a75d
2 changed files with 5 additions and 5 deletions

View file

@ -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 <typename P, int M>
struct MakePolynomial {
enum { value = (1 << (M - P::value)) bitor MakePolynomial<typename P::Next, M>::value };
};
template <int M>
struct MakePolynomial<nullptr_t, M> {
struct MakePolynomial<std::nullptr_t, M> {
enum { value = 0 };
};

View file

@ -56,7 +56,7 @@ namespace dhandy {
template <std::size_t S2> constexpr bool operator== (const string<S2, Ch>&) const { return false; }
template <typename... Args>
requires (std::is_same_v<Args, typename string<S, Ch>::value_type> && ...)
requires (std::is_same_v<Args, Ch> && ...)
constexpr string ( Args... );
constexpr const value_type (&data_arr() const)[S] { return m_data; }
@ -110,8 +110,8 @@ namespace dhandy {
template <std::size_t S, typename Ch>
template <typename... Args>
requires (std::is_same_v<Args, typename string<S, Ch>::value_type> && ...)
inline constexpr string<S, Ch>::string (Args... parArgs) :
requires (std::is_same_v<Args, Ch> && ...)
constexpr inline string<S, Ch>::string (Args... parArgs) :
m_data{parArgs...}
{
}