From 6c16754a6b99fbf6233fc48e50c8821405e89a02 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 28 May 2018 17:48:55 -0400 Subject: [PATCH] Strips further improper `constexpr`s. --- ClockReceiver/ClockReceiver.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ClockReceiver/ClockReceiver.hpp b/ClockReceiver/ClockReceiver.hpp index a5a0b3186..937eb17c0 100644 --- a/ClockReceiver/ClockReceiver.hpp +++ b/ClockReceiver/ClockReceiver.hpp @@ -55,17 +55,17 @@ template 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(this); } - constexpr T &operator -=(const T &rhs) { + T &operator -=(const T &rhs) { length_ -= rhs.length_; return *static_cast(this); }