Commit bfd48a0f authored by Christian Engwer's avatar Christian Engwer

[!75] Static treepath

Merge branch 'static-treepath' into 'master'

ref:staging/dune-typetree\> We introduce an alias StaticTreePath<i,...>
referring to the corresponding HybridTreePath<integral_constant<i>,...>.

The old (superseeded) static TreePath<i,...> is now deprecated and will be
removed after 2.7.

The StaticTreePath will stay as a convenience alias.

(related to [#10])

See merge request [!75]

parents 420fc82d 888eb62f
Pipeline #27358 passed with stage
in 2 minutes and 7 seconds
......@@ -7,7 +7,7 @@ TypeTree 2.8-git
- Removed the type aliases for the storage type `Storage` and `ConstStorage` in the
node implementations.
- The memberfunction `childStorage()` in the nodes now consistently take an index or an
index_constant as argument.
`index_constant` as argument.
TypeTree 2.7
......@@ -24,6 +24,12 @@ TypeTree 2.7
to be compatible with `DynamicTreePath`.
- A `HybridTreePath` can now be constructed using the
global `treePath()` function which is an alias for `hybridTreePath()`.
- `HybridTreePath` now supports all static operations of the old
`TreePath`. The `TreePath<i,...>` is thus only an alias to
`HybridTreePath<integral_constant<i>,...>` and is deprecated (i.e. will
be removed after TypeTree 2.7)
- A convenience alias `StaticTreePath` is introduced, which should be
used instead of the deprecated `TreePath` alias, if the path is known to be static.
- The type alias template `Child<>` now fails to instantiate if the child cannot be extracted.
This is much more useful than the previous behavior of just defaulting to `void` in case of
......@@ -430,7 +430,10 @@ namespace Dune {
template<std::size_t... i>
using TreePath = HybridTreePath<Dune::index_constant<i>...>;
using TreePath [[deprecated("use StaticTreePath, this type will be removed after DUNE 2.7")]] = HybridTreePath<Dune::index_constant<i>...>;
template<std::size_t... i>
using StaticTreePath = HybridTreePath<Dune::index_constant<i>...>;
//! \} group TypeTree
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment