Skip to content
Snippets Groups Projects
Verified Commit d0bdb705 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Add comment on custom prefix

parent 5d2b1a28
Branches
Tags
1 merge request!1349Add special internal constructor for empty static parameter tree
Pipeline #72807 passed with warnings
Pipeline: Dune Nightly Test

#72816

    ......@@ -20,6 +20,9 @@ using namespace Dune;
    ParameterTree::ParameterTree()
    {}
    // Since this (internal) tree is static and constant, its prefix cannot be changed even
    // though we report it as the sub-tree of another one (in `.sub(prefix) const`).
    // Thus, we set the prefix as "<unknown>" to inform users that we could not construct the real prefix.
    ParameterTree::ParameterTree(ParameterTree::EmptyTag)
    : prefix_{"<unknown>"}
    {}
    ......
    ......@@ -40,6 +40,9 @@ namespace Dune {
    template<typename T>
    struct Parser;
    struct EmptyTag {};
    ParameterTree(EmptyTag);
    public:
    /** \brief storage for key lists
    ......@@ -207,9 +210,6 @@ namespace Dune {
    protected:
    struct EmptyTag {};
    ParameterTree(EmptyTag);
    static const ParameterTree empty_;
    std::string prefix_;
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment