Skip to content

Commit

Permalink
change crtp inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 11, 2020
1 parent 3c2472e commit fe8d3ee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cpp/src/arrow/compute/kernels/scalar_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,7 @@ static inline bool IsPrintableCharacterAscii(uint8_t ascii_character) {
}

template <typename ArrowType, typename Derived, bool allow_empty = false>
struct CharacterPredicateUnicode
: BinaryToBoolean<ArrowType,
CharacterPredicateUnicode<ArrowType, Derived, allow_empty>> {
struct CharacterPredicateUnicode : BinaryToBoolean<ArrowType, Derived> {
using offset_type = typename ArrowType::offset_type;
static inline bool Predicate(KernelContext* ctx, const uint8_t* input,
offset_type input_string_ncodeunits) {
Expand All @@ -632,9 +630,7 @@ struct CharacterPredicateUnicode
};

template <typename ArrowType, typename Derived, bool allow_empty = false>
struct CharacterPredicateAscii
: BinaryToBoolean<ArrowType,
CharacterPredicateAscii<ArrowType, Derived, allow_empty>> {
struct CharacterPredicateAscii : BinaryToBoolean<ArrowType, Derived> {
using offset_type = typename ArrowType::offset_type;
static inline bool Predicate(KernelContext* ctx, const uint8_t* input,
offset_type input_string_ncodeunits) {
Expand Down

0 comments on commit fe8d3ee

Please sign in to comment.