diff --git a/src/TNL/Atomic.h b/src/TNL/Atomic.h
index 3f0defe5e996d1d01d64bc5ec237a6bf1e47e96c..f9b54ca2b7d82e9307ee53b9bd3cf50c58689dbf 100644
--- a/src/TNL/Atomic.h
+++ b/src/TNL/Atomic.h
@@ -150,7 +150,10 @@ public:
    {
       // CUDA does not have a native atomic load:
       // https://stackoverflow.com/questions/32341081/how-to-have-atomic-load-in-cuda
-      return const_cast<Atomic*>(this)->fetch_add( 0 );
+
+      // const-cast on pointer fails in CUDA 10.1.105
+//      return const_cast<Atomic*>(this)->fetch_add( 0 );
+      return const_cast<Atomic&>(*this).fetch_add( 0 );
    }
 
    __cuda_callable__