From 06d9197f44a9616664ac2666bfe7354339e96352 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 29 Oct 2024 14:06:32 +0100 Subject: [PATCH] refactor: `explicit` cleanup for deduction guides of `quantity` and `quantity_point` --- src/core/include/mp-units/framework/quantity.h | 2 +- src/core/include/mp-units/framework/quantity_point.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index e87d0d97..d07fe215 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -640,7 +640,7 @@ public: // CTAD template -explicit(false) quantity(Value v, R) -> quantity; +quantity(Value v, R) -> quantity; template explicit(false) quantity(Value) -> quantity; diff --git a/src/core/include/mp-units/framework/quantity_point.h b/src/core/include/mp-units/framework/quantity_point.h index fb0f1d5a..920abcab 100644 --- a/src/core/include/mp-units/framework/quantity_point.h +++ b/src/core/include/mp-units/framework/quantity_point.h @@ -546,7 +546,7 @@ public: // CTAD template -quantity_point(Q q) -> quantity_point; +explicit quantity_point(Q q) -> quantity_point; template PO> quantity_point(Q q, PO) -> quantity_point;