From 4908dbc557ef316fab908e6de03f4e5704fd1650 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Tue, 11 Jun 2019 18:50:43 +0200
Subject: [PATCH] add constexpr to param qualifiers detection

---
 alib2abstraction/src/common/ParamQualifiers.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/alib2abstraction/src/common/ParamQualifiers.hpp b/alib2abstraction/src/common/ParamQualifiers.hpp
index 7975f2f052..d3991c5fac 100644
--- a/alib2abstraction/src/common/ParamQualifiers.hpp
+++ b/alib2abstraction/src/common/ParamQualifiers.hpp
@@ -18,13 +18,13 @@ public:
 	static ext::set < ParamQualifier > paramQualifiers ( ) {
 		ext::set < ParamQualifier > res;
 
-		if ( std::is_lvalue_reference < Param >::value )
+		if constexpr ( std::is_lvalue_reference < Param >::value )
 			res.insert ( ParamQualifier::LREF );
 
-		if ( std::is_rvalue_reference < Param >::value )
+		if constexpr ( std::is_rvalue_reference < Param >::value )
 			res.insert ( ParamQualifier::RREF );
 
-		if ( std::is_const < typename std::remove_reference < Param >::type >::value )
+		if constexpr ( std::is_const < typename std::remove_reference < Param >::type >::value )
 			res.insert ( ParamQualifier::CONST );
 
 		return res;
-- 
GitLab