Skip to content

Commit 462af7c

Browse files
Remove constness transitivity on Exclude<*> types, as this reflects more standard usage.
1 parent b04bd4e commit 462af7c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

classdesc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,10 +1040,8 @@ namespace classdesc
10401040
template <class U> explicit Exclude(const U& x): val(x) {}
10411041
template <class U> const T& operator=(U x) {return *(val=x);}
10421042
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;}
1043+
T& operator*() const {return *val;}
1044+
T* operator->() const {return val;}
10471045
template <class U>
10481046
typename enable_if<is_integral<U>,T*>::T
10491047
operator+(U x) {return val+x;}

0 commit comments

Comments
 (0)