From 809e8337552664fe8ea7c50a47c2bc2542b9695e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Mon, 25 Nov 2019 16:20:05 +0100
Subject: [PATCH] Fixed ParallelFor example.

---
 Documentation/Examples/Algorithms/ParallelForExample.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/Examples/Algorithms/ParallelForExample.cpp b/Documentation/Examples/Algorithms/ParallelForExample.cpp
index 41ea2f1a22..9c056fa1d2 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; };
 
-- 
GitLab