diff --git a/kratos/spatial_containers/tree.h b/kratos/spatial_containers/tree.h index 47cdad619e69..801ab829e965 100644 --- a/kratos/spatial_containers/tree.h +++ b/kratos/spatial_containers/tree.h @@ -42,17 +42,6 @@ namespace Kratos ///@name Functions ///@{ -// Helper template to extract ObjectType or default to void -template -struct GetObjectType { - using type = void; -}; - -template -struct GetObjectType> { - using type = typename T::ObjectType; -}; - ///@} ///@name Kratos Classes ///@{ @@ -203,6 +192,17 @@ class Tree ///@name Type Definitions ///@{ + // Helper template to extract ObjectType or default to void + template + struct GetObjectType { + using type = void; + }; + + template + struct GetObjectType> { + using type = typename T::ObjectType; + }; + /** * @class Partitions * @brief Class to represent partitions for the tree.