Skip to content

Commit cc9e1b3

Browse files
committed
Fixed contness of operators in smart_refctd_ptr
1 parent dc09b39 commit cc9e1b3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/nbl/core/IReferenceCounted.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,9 @@ namespace core
303303

304304
inline I_REFERENCE_COUNTED* const& get() const { return ptr; }
305305

306-
inline I_REFERENCE_COUNTED* operator->() { return ptr; }
307-
inline const I_REFERENCE_COUNTED* operator->() const { return ptr; }
306+
inline I_REFERENCE_COUNTED* operator->() const { return ptr; }
308307

309-
inline I_REFERENCE_COUNTED& operator*() { return *ptr; }
310-
inline const I_REFERENCE_COUNTED& operator*() const { return *ptr; }
308+
inline I_REFERENCE_COUNTED& operator*() const { return *ptr; }
311309

312310
inline I_REFERENCE_COUNTED& operator[](size_t idx) { return ptr[idx]; }
313311
inline const I_REFERENCE_COUNTED& operator[](size_t idx) const { return ptr[idx]; }

0 commit comments

Comments
 (0)