diff --git a/Documentation/Examples/Algorithms/ParallelForExample.cpp b/Documentation/Examples/Algorithms/ParallelForExample.cpp index 41ea2f1a226ee0c5276f9c08c73b5c0a066119f4..9c056fa1d2800e337eba71f78ee8d2c0f6f594cd 100644 --- a/Documentation/Examples/Algorithms/ParallelForExample.cpp +++ b/Documentation/Examples/Algorithms/ParallelForExample.cpp @@ -13,7 +13,7 @@ template< typename Device > void initVector( Vector< double, Device >& v, const double& c ) { - auto view = v.getConstView(); + auto view = v.getView(); auto init = [=] __cuda_callable__ ( int i, const double c ) mutable { view[ i ] = c; };