Commit d94899f0 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Simplified cast operator in StaticArray and StaticVector

parent 79a3009d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -295,11 +295,7 @@ StaticArray< Size, Value >::
operator StaticArray< Size, OtherValue >() const
{
   StaticArray< Size, OtherValue > aux;
   Algorithms::unrolledFor< int, 0, Size >(
      [&] ( int i ) mutable {
         aux[ i ] = (*this)[ i ];
      }
   );
   aux.operator=( *this );
   return aux;
}

+1 −5
Original line number Diff line number Diff line
@@ -99,11 +99,7 @@ StaticVector< Size, Real >::
operator StaticVector< Size, OtherReal >() const
{
   StaticVector< Size, OtherReal > aux;
   Algorithms::unrolledFor< int, 0, Size >(
      [&] ( int i ) mutable {
         aux[ i ] = (*this)[ i ];
      }
   );
   aux.operator=( *this );
   return aux;
}