Skip to content

Commit

Permalink
Work around compiler changes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Paine <[email protected]>
  • Loading branch information
timkpaine committed Sep 1, 2024
1 parent b379890 commit ab51637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/csp/core/Enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ struct Enum : public EnumTraits
iterator( int v ) : m_v( v ) {}

Enum operator*() { return Enum( ( EnumV ) m_v ); }
bool operator==(const iterator &rhs) { return m_v == rhs.m_v; }
bool operator!=(const iterator &rhs) { return !(*this == rhs); }
bool operator==(const iterator &rhs) const { return m_v == rhs.m_v; }
bool operator!=(const iterator &rhs) const { return !(*this == rhs); }

iterator &operator++() {
++m_v;
Expand Down
2 changes: 1 addition & 1 deletion cpp/csp/engine/DialectGenericType.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct CSPTYPESIMPL_EXPORT DialectGenericType
size_t hash() const;

private:
[[maybe_unused]] void* m_data;
[[maybe_unused]] void* m_data = nullptr;
};

CSPTYPESIMPL_EXPORT std::ostream & operator<<( std::ostream & o, const DialectGenericType & obj );
Expand Down

0 comments on commit ab51637

Please sign in to comment.