Skip to content
Snippets Groups Projects
Commit e2cbfb8b authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed constness and pointer type of auto in StaticArray

parent e9be2317
No related branches found
No related tags found
1 merge request!122Linting setup + code updates
......@@ -131,7 +131,7 @@ template< int Size, typename Value >
__cuda_callable__
StaticArray< Size, Value >::StaticArray( const std::initializer_list< Value >& elems )
{
auto it = elems.begin();
const auto* it = elems.begin();
for( int i = 0; i < getSize(); i++ )
data[ i ] = *it++;
}
......
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