1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Strips further improper constexprs.

This commit is contained in:
Thomas Harte 2018-05-28 17:48:55 -04:00
parent 75f9e3caeb
commit 6c16754a6b

View File

@ -55,17 +55,17 @@ template <class T> class WrappedInt {
constexpr WrappedInt(int l) : length_(l) {}
constexpr WrappedInt() : length_(0) {}
constexpr T &operator =(const T &rhs) {
T &operator =(const T &rhs) {
length_ = rhs.length_;
return *this;
}
constexpr T &operator +=(const T &rhs) {
T &operator +=(const T &rhs) {
length_ += rhs.length_;
return *static_cast<T *>(this);
}
constexpr T &operator -=(const T &rhs) {
T &operator -=(const T &rhs) {
length_ -= rhs.length_;
return *static_cast<T *>(this);
}