From 3ee3e4e78ad54b62ee558e41d5938fc908ef798e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 31 Mar 2023 20:34:21 +0200 Subject: [PATCH] [slides][props] minor cleanup --- slides/properties.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slides/properties.md b/slides/properties.md index bab6a8ae..adee689d 100644 --- a/slides/properties.md +++ b/slides/properties.md @@ -178,11 +178,11 @@ namespace Dumux::Properties { namespace TTag { struct MyTypeTag {}; } // some property tag -template<typename TypeTag> struct SomeTag; +template<typename TypeTag> struct PropTagA; // property definition for MyTypeTag template<> -struct SomeTag<MyTypeTag> +struct PropTagA<MyTypeTag> { using type = /*the actual property*/; }; } // namespace Dumux::Properties ``` @@ -196,8 +196,8 @@ A simplified example to illustrate the idea template<class TypeTag> class GenericClass { - using PropA = typename Properties::Tag<TypeTag>::type; - using PropB = typename Properties::OtherTag<TypeTag>::type; + using PropA = typename Properties::PropTagA<TypeTag>::type; + using PropB = typename Properties::PropTagB<TypeTag>::type; // ... // A property could be, for instance, a fluid system using FS = typename Properties::FluidSystem<TypeTag>::type; -- GitLab