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

abstraction: fix vector < bool > normalization

the rvalue reference captures Bit reference object here which is not intended
nor wise
parent 67dd0a98
No related branches found
No related tags found
1 merge request!229Merge jt
......@@ -23,7 +23,7 @@ struct type_util < ext::vector < T > > {
 
static ext::vector < object::Object > normalize ( ext::vector < T > && arg ) {
ext::vector < object::Object > res;
for ( T && item : ext::make_mover ( arg ) )
for ( std::conditional_t < std::is_same_v < bool, T >, T, T && > item : ext::make_mover ( arg ) )
res.push_back ( factory::NormalizeFactory::normalize < T > ( std::move ( item ) ) );
 
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