   ASSERT_EQUAL_QUIET(V.begin(), B.begin());
   ASSERT_EQUAL_QUIET(V.end(),   B.end());
 
-  View W = V;
+  const View W = V;
   
   ASSERT_EQUAL(W.size(),     8);
   ASSERT_EQUAL(W.capacity(), 8);

{
  typedef typename cusp::array1d<int, MemorySpace> Array;
  typedef typename Array::iterator                 Iterator;
  typedef cusp::array1d_view<Iterator>             View;

  Array A(4);
  A[0] = 10; A[1] = 20; A[2] = 30; A[3] = 40;

  View V(A.begin(), A.end());

  ASSERT_EQUAL(V.size(),     4);
  ASSERT_EQUAL(V.capacity(), 4);

  ASSERT_EQUAL(V[1], 17);
  ASSERT_EQUAL(A[1], 17);
}
DECLARE_HOST_DEVICE_UNITTEST(TestMakeArray1dView);


