Skip to content

Commit ed1b734

Browse files
Implicitly declare destructor for binary_counting_predicate
1 parent b9cb3f5 commit ed1b734

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

libcxx/test/support/counting_predicates.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,13 @@ struct binary_counting_predicate {
4141
typedef Arg2 second_argument_type;
4242
typedef bool result_type;
4343

44-
TEST_CONSTEXPR_CXX20 binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
45-
TEST_CONSTEXPR_CXX20 ~binary_counting_predicate() {}
46-
47-
TEST_CONSTEXPR_CXX20 bool operator()(const Arg1& a1, const Arg2& a2) const {
44+
TEST_CONSTEXPR binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
45+
TEST_CONSTEXPR_CXX14 bool operator()(const Arg1& a1, const Arg2& a2) const {
4846
++count_;
4947
return p_(a1, a2);
5048
}
51-
TEST_CONSTEXPR_CXX20 std::size_t count() const { return count_; }
52-
TEST_CONSTEXPR_CXX20 void reset() { count_ = 0; }
49+
TEST_CONSTEXPR std::size_t count() const { return count_; }
50+
TEST_CONSTEXPR_CXX14 void reset() { count_ = 0; }
5351

5452
private:
5553
Predicate p_;

0 commit comments

Comments
 (0)