Skip to content

Commit 3739e66

Browse files
maartenbreddelswesm
authored andcommitted
change crtp inheritance
1 parent 68868bd commit 3739e66

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cpp/src/arrow/compute/kernels/scalar_string.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,7 @@ static inline bool IsPrintableCharacterAscii(uint8_t ascii_character) {
605605
}
606606

607607
template <typename ArrowType, typename Derived, bool allow_empty = false>
608-
struct CharacterPredicateUnicode
609-
: BinaryToBoolean<ArrowType,
610-
CharacterPredicateUnicode<ArrowType, Derived, allow_empty>> {
608+
struct CharacterPredicateUnicode : BinaryToBoolean<ArrowType, Derived> {
611609
using offset_type = typename ArrowType::offset_type;
612610
static inline bool Predicate(KernelContext* ctx, const uint8_t* input,
613611
offset_type input_string_ncodeunits) {
@@ -632,9 +630,7 @@ struct CharacterPredicateUnicode
632630
};
633631

634632
template <typename ArrowType, typename Derived, bool allow_empty = false>
635-
struct CharacterPredicateAscii
636-
: BinaryToBoolean<ArrowType,
637-
CharacterPredicateAscii<ArrowType, Derived, allow_empty>> {
633+
struct CharacterPredicateAscii : BinaryToBoolean<ArrowType, Derived> {
638634
using offset_type = typename ArrowType::offset_type;
639635
static inline bool Predicate(KernelContext* ctx, const uint8_t* input,
640636
offset_type input_string_ncodeunits) {

0 commit comments

Comments
 (0)