File tree 3 files changed +4
-4
lines changed
regression-tests/test-results
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public: constexpr auto operator^=(file_attributes const& that) & -> void;
83
83
public: [[nodiscard]] constexpr auto operator |(file_attributes const & that) const & -> file_attributes;
84
84
public: [[nodiscard]] constexpr auto operator &(file_attributes const & that) const & -> file_attributes;
85
85
public: [[nodiscard]] constexpr auto operator ^(file_attributes const & that) const & -> file_attributes;
86
- public: [[nodiscard]] constexpr auto has (file_attributes const & that) & -> bool;
86
+ public: [[nodiscard]] constexpr auto has (file_attributes const & that) const & -> bool;
87
87
public: constexpr auto set (file_attributes const & that) & -> void;
88
88
public: constexpr auto clear (file_attributes const & that) & -> void;
89
89
public: static const file_attributes cached;
@@ -202,7 +202,7 @@ constexpr auto file_attributes::operator^=(file_attributes const& that) & -> voi
202
202
[[nodiscard]] constexpr auto file_attributes::operator |(file_attributes const & that) const & -> file_attributes { return _value | that._value ; }
203
203
[[nodiscard]] constexpr auto file_attributes::operator &(file_attributes const & that) const & -> file_attributes { return _value & that._value ; }
204
204
[[nodiscard]] constexpr auto file_attributes::operator ^(file_attributes const & that) const & -> file_attributes { return _value ^ that._value ; }
205
- [[nodiscard]] constexpr auto file_attributes::has (file_attributes const & that) & -> bool { return _value & that._value ; }
205
+ [[nodiscard]] constexpr auto file_attributes::has (file_attributes const & that) const & -> bool { return _value & that._value ; }
206
206
constexpr auto file_attributes::set (file_attributes const & that) & -> void { _value |= that._value ; }
207
207
constexpr auto file_attributes::clear (file_attributes const & that) & -> void { _value &= ~that._value ; }
208
208
inline CPP2_CONSTEXPR file_attributes file_attributes::cached = 1 ;
Original file line number Diff line number Diff line change @@ -1741,7 +1741,7 @@ std::string value{"-1"};
1741
1741
CPP2_UFCS (add_member)(t, (" operator| : ( this, that ) -> " + cpp2::to_string (CPP2_UFCS (name)(t)) + " == _value | that._value;" ));
1742
1742
CPP2_UFCS (add_member)(t, (" operator& : ( this, that ) -> " + cpp2::to_string (CPP2_UFCS (name)(t)) + " == _value & that._value;" ));
1743
1743
CPP2_UFCS (add_member)(t, (" operator^ : ( this, that ) -> " + cpp2::to_string (CPP2_UFCS (name)(t)) + " == _value ^ that._value;" ));
1744
- CPP2_UFCS (add_member)(t, " has : ( inout this, that ) -> bool == _value & that._value;" );
1744
+ CPP2_UFCS (add_member)(t, " has : ( this, that ) -> bool == _value & that._value;" );
1745
1745
CPP2_UFCS (add_member)(t, " set : ( inout this, that ) == _value |= that._value;" );
1746
1746
CPP2_UFCS (add_member)(t, " clear : ( inout this, that ) == _value &= that._value~;" );
1747
1747
}
Original file line number Diff line number Diff line change @@ -1098,7 +1098,7 @@ basic_enum: (
1098
1098
t.add_member( " operator| : ( this, that ) -> (t.name())$ == _value | that._value;");
1099
1099
t.add_member( " operator& : ( this, that ) -> (t.name())$ == _value & that._value;");
1100
1100
t.add_member( " operator^ : ( this, that ) -> (t.name())$ == _value ^ that._value;");
1101
- t.add_member( " has : ( inout this, that ) -> bool == _value & that._value;");
1101
+ t.add_member( " has : ( this, that ) -> bool == _value & that._value;");
1102
1102
t.add_member( " set : ( inout this, that ) == _value |= that._value;");
1103
1103
t.add_member( " clear : ( inout this, that ) == _value &= that._value~;");
1104
1104
}
You can’t perform that action at this time.
0 commit comments