Skip to content
Snippets Groups Projects
Commit 4908dbc5 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add constexpr to param qualifiers detection

parent e215ef37
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment