Skip to content

Commit a95f4a4

Browse files
[Warnings] Removed Unused Const Reference
When a class returns a reference to a dereferenced pointer, if the pointer does not point to a const object, returning that pointer as a const has no effect. Removed the unused const which was causing warnings.
1 parent 30b655c commit a95f4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/EXTERNAL/libtatum/libtatum/tatum/tags/TimingTags.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class TimingTags {
123123
friend bool operator!=(Iterator a, Iterator b) { return a.p_ != b.p_; }
124124

125125
reference operator*() { return *p_; }
126-
const reference operator*() const { return *p_; } //Required for MSVC (gcc/clang are fine with only the non-cost version)
126+
reference operator*() const { return *p_; } //Required for MSVC (gcc/clang are fine with only the non-cost version)
127127
pointer operator->() { return p_; }
128128
reference operator[](size_t n) { return *(p_ + n); }
129129

0 commit comments

Comments
 (0)