From b98703bd5bcde4d0105089d1ddae0318224f120f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 18 Nov 2019 22:11:52 -0500 Subject: [PATCH] Corrects lack of `const`. --- ClockReceiver/ClockReceiver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClockReceiver/ClockReceiver.hpp b/ClockReceiver/ClockReceiver.hpp index e66b74325..40e0968fb 100644 --- a/ClockReceiver/ClockReceiver.hpp +++ b/ClockReceiver/ClockReceiver.hpp @@ -137,7 +137,7 @@ template class WrappedInt { // bool operator () is not supported because it offers an implicit cast to int, which is prone silently to permit misuse /// @returns The underlying int, cast to an integral type of your choosing. - template forceinline constexpr Type as() { return Type(length_); } + template forceinline constexpr Type as() const { return Type(length_); } /// @returns The underlying int, in its native form. forceinline constexpr IntType as_integral() const { return length_; }