diff --git a/dune/common/fvector.hh b/dune/common/fvector.hh index 72e5ea75c0026425f1cdb15fa5bc40e347b3e0b2..bbb52774d1909937f4e39c3bdaaaab1e9170d90b 100644 --- a/dune/common/fvector.hh +++ b/dune/common/fvector.hh @@ -463,16 +463,14 @@ namespace Dune { /** \brief copy constructor */ FieldVector ( const FieldVector &other ) { - // for( size_type i = 0; i < SIZE; ++i ) - // p[ i ] = other[ i ]; - std::memcpy(p,other.p,SIZE*sizeof(K)); + for( size_type i = 0; i < SIZE; ++i ) + p[ i ] = other[ i ]; } /** \brief Assigment from other vector */ FieldVector& operator= (const FieldVector& other) { - std::memcpy(p,other.p,SIZE*sizeof(K)); - // for (size_type i=0; i<SIZE; i++) - // p[i] = other[i]; + for (size_type i=0; i<SIZE; i++) + p[i] = other[i]; return *this; }