From 925239cb31e3e17ec22d30f65d1e048a584560b8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 14 Jan 2019 19:38:51 +0100 Subject: [PATCH] Small constraints cleanup --- src/include/units/quantity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/units/quantity.h b/src/include/units/quantity.h index 303c79dc..49f972b4 100644 --- a/src/include/units/quantity.h +++ b/src/include/units/quantity.h @@ -131,7 +131,7 @@ namespace units { quantity(const quantity&) = default; template Rep2> - requires (treat_as_floating_point || !treat_as_floating_point) + requires treat_as_floating_point || (!treat_as_floating_point) constexpr explicit quantity(const Rep2& r) : value_{static_cast(r)} { }