From 375f6a376779f56da723265792d5a85e8231cb66 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Mon, 10 Jul 2023 00:12:08 -0600
Subject: [PATCH] Fix a misplaced forward declaration.

---
 include/deal.II/lac/cuda_vector.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/deal.II/lac/cuda_vector.h b/include/deal.II/lac/cuda_vector.h
index 8032d9007d..e0afc93c18 100644
--- a/include/deal.II/lac/cuda_vector.h
+++ b/include/deal.II/lac/cuda_vector.h
@@ -31,8 +31,11 @@ DEAL_II_NAMESPACE_OPEN
 
 // Forward declarations
 #  ifndef DOXYGEN
-template <typename Number>
-class ReadWriteVector;
+namespace LinearAlgebra
+{
+  template <typename Number>
+  class ReadWriteVector;
+}
 #  endif
 
 namespace LinearAlgebra
-- 
2.39.5