Commit 1e882f4c authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added const_cast to ArrayView constructor. I am not sure about this solution,...

Added const_cast to ArrayView constructor. I am not sure about this solution, it will need discussion.
parent c25f2e0a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -143,7 +143,8 @@ public:
   template< typename Value_ >
   __cuda_callable__
   ArrayView( const ArrayView< Value_, Device, Index >& view )
   : data(view.getData()), size(view.getSize()) {}
   : data( const_cast< Value* >( view.getData()) ), size(view.getSize()) {}
   //      ^ TODO: Is it correct? Check implementation of recursive constant proxy.

   /**
    * \brief Move constructor for initialization from \e rvalues.