From d2f6ef7b49d978f6c0da4b15f395c0f34f5c5ffb Mon Sep 17 00:00:00 2001 From: Florent Hivert Date: Sun, 29 Oct 2023 14:41:39 +0000 Subject: [PATCH] implicit constructor --- include/hpcombi/perm16.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/hpcombi/perm16.hpp b/include/hpcombi/perm16.hpp index 6a792619..a844467a 100644 --- a/include/hpcombi/perm16.hpp +++ b/include/hpcombi/perm16.hpp @@ -121,8 +121,8 @@ struct alignas(16) PTransf16 : public Vect16 { struct Transf16 : public PTransf16 { Transf16() = default; constexpr Transf16(const Transf16 &v) = default; - constexpr Transf16(const vect v) : PTransf16(v) {} - constexpr Transf16(const epu8 x) : PTransf16(x) {} + /* implicit */ constexpr Transf16(const vect v) : PTransf16(v) {} // NOLINT + /* implicit */ constexpr Transf16(const epu8 x) : PTransf16(x) {} // NOLINT Transf16(std::initializer_list il) : PTransf16(il) {} Transf16 &operator=(const Transf16 &) = default; @@ -150,8 +150,8 @@ struct Transf16 : public PTransf16 { struct PPerm16 : public PTransf16 { PPerm16() = default; constexpr PPerm16(const PPerm16 &v) = default; - constexpr PPerm16(const vect v) : PTransf16(v) {} - constexpr PPerm16(const epu8 x) : PTransf16(x) {} + /* implicit */ constexpr PPerm16(const vect v) : PTransf16(v) {} // NOLINT + /* implicit */ constexpr PPerm16(const epu8 x) : PTransf16(x) {} // NOLINT PPerm16(std::vector dom, std::vector rng, size_t = 0 /* unused */) : PTransf16(dom, rng) {} @@ -209,8 +209,8 @@ struct PPerm16 : public PTransf16 { struct Perm16 : public Transf16 /* public PPerm : diamond problem */ { Perm16() = default; constexpr Perm16(const Perm16 &) = default; - constexpr Perm16(const vect v) : Transf16(v) {} - constexpr Perm16(const epu8 x) : Transf16(x) {} + /* implicit */ constexpr Perm16(const vect v) : Transf16(v) {} // NOLINT + /* implicit */ constexpr Perm16(const epu8 x) : Transf16(x) {} // NOLINT Perm16 &operator=(const Perm16 &) = default; Perm16(std::initializer_list il) : Transf16(il) {}