Navigation Menu

Skip to content

Commit

Permalink
Add const specifiers to constexpr member functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 7, 2013
1 parent 2ab36a1 commit eab2c29
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/grnxx/flags_impl.hpp
Expand Up @@ -32,27 +32,27 @@ class FlagsImpl {

FlagsImpl() = default;

constexpr explicit operator bool() {
constexpr explicit operator bool() const {
return flags_ != 0;
}

constexpr FlagsImpl operator&(FlagsImpl rhs) {
constexpr FlagsImpl operator&(FlagsImpl rhs) const {
return FlagsImpl(flags_ & rhs.flags_);
}
constexpr FlagsImpl operator|(FlagsImpl rhs) {
constexpr FlagsImpl operator|(FlagsImpl rhs) const {
return FlagsImpl(flags_ | rhs.flags_);
}
constexpr FlagsImpl operator^(FlagsImpl rhs) {
constexpr FlagsImpl operator^(FlagsImpl rhs) const {
return FlagsImpl(flags_ ^ rhs.flags_);
}
constexpr FlagsImpl operator~() {
constexpr FlagsImpl operator~() const {
return FlagsImpl(~flags_);
}

constexpr bool operator==(FlagsImpl rhs) {
constexpr bool operator==(FlagsImpl rhs) const {
return flags_ == rhs.flags_;
}
constexpr bool operator!=(FlagsImpl rhs) {
constexpr bool operator!=(FlagsImpl rhs) const {
return flags_ == rhs.flags_;
}

Expand Down

0 comments on commit eab2c29

Please sign in to comment.