File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
libcxx/test/std/containers Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,26 +22,26 @@ class Emplaceable {
2222 double double_;
2323
2424public:
25- TEST_CONSTEXPR Emplaceable () : int_(0 ), double_(0 ) {}
26- TEST_CONSTEXPR Emplaceable (int i, double d) : int_(i), double_(d) {}
27- TEST_CONSTEXPR Emplaceable (Emplaceable&& x) : int_(x.int_), double_(x.double_) {
25+ TEST_CONSTEXPR_CXX20 Emplaceable () : int_(0 ), double_(0 ) {}
26+ TEST_CONSTEXPR_CXX20 Emplaceable (int i, double d) : int_(i), double_(d) {}
27+ TEST_CONSTEXPR_CXX20 Emplaceable (Emplaceable&& x) : int_(x.int_), double_(x.double_) {
2828 x.int_ = 0 ;
2929 x.double_ = 0 ;
3030 }
31- TEST_CONSTEXPR Emplaceable& operator =(Emplaceable&& x) {
31+ TEST_CONSTEXPR_CXX20 Emplaceable& operator =(Emplaceable&& x) {
3232 int_ = x.int_ ;
3333 x.int_ = 0 ;
3434 double_ = x.double_ ;
3535 x.double_ = 0 ;
3636 return *this ;
3737 }
3838
39- TEST_CONSTEXPR bool operator ==(const Emplaceable& x) const { return int_ == x.int_ && double_ == x.double_ ; }
40- TEST_CONSTEXPR bool operator <(const Emplaceable& x) const {
39+ TEST_CONSTEXPR_CXX20 bool operator ==(const Emplaceable& x) const { return int_ == x.int_ && double_ == x.double_ ; }
40+ TEST_CONSTEXPR_CXX20 bool operator <(const Emplaceable& x) const {
4141 return int_ < x.int_ || (int_ == x.int_ && double_ < x.double_ );
4242 }
4343
44- TEST_CONSTEXPR int get () const { return int_; }
44+ TEST_CONSTEXPR_CXX20 int get () const { return int_; }
4545};
4646
4747template <>
You can’t perform that action at this time.
0 commit comments