Skip to content
Snippets Groups Projects
Commit 7725ca00 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Merge branch 'fix-rec-92' into 'master'

make clang happy

Closes DaVinci#92

See merge request lhcb/Rec!3286
parents 79fc538c a5de60fc
No related branches found
No related tags found
No related merge requests found
......@@ -219,8 +219,8 @@ namespace Functors::Functional {
static_assert( std::is_constructible_v<typename U::value_type, T>,
"Return type value_t needs to be constructible from the member variable of type T" );
if ( opt_value.has_value() ) { return std::forward<U>( opt_value ).value(); }
return typename U::value_type{m_value};
// make clang happy and use static_cast instead of calling a constructor directly...
return static_cast<typename U::value_type>( m_value );
} else {
return std::forward<U>( opt_value );
}
......
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