We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04bd4e commit 462af7cCopy full SHA for 462af7c
1 file changed
classdesc.h
@@ -1040,10 +1040,8 @@ namespace classdesc
1040
template <class U> explicit Exclude(const U& x): val(x) {}
1041
template <class U> const T& operator=(U x) {return *(val=x);}
1042
template <class U> operator U() const {return val;}
1043
- T& operator*() {return *val;}
1044
- const T& operator*() const {return *val;}
1045
- T* operator->() {return val;}
1046
- const T* operator->() const {return val;}
+ T& operator*() const {return *val;}
+ T* operator->() const {return val;}
1047
template <class U>
1048
typename enable_if<is_integral<U>,T*>::T
1049
operator+(U x) {return val+x;}
0 commit comments