Commit 371590b2 authored by Simon Praetorius's avatar Simon Praetorius

updated CHANGELOG and unified index_constant naming

parent 69efea94
......@@ -4,6 +4,11 @@ Changes
TypeTree 2.8-git
----------------
- Removed the free function `childStorage()`
- Removed the type aliases for the storage type `Storage` and `ConstStorage` in the
node implementations.
TypeTree 2.7
------------
......
......@@ -148,7 +148,7 @@ namespace Dune {
*/
template<std::size_t k,
typename std::enable_if<lazy_enable<k>::value, int>::type = 0>
auto& child (Dune::index_constant<k> = {})
auto& child (index_constant<k> = {})
{
return _node->template child<Child<k>::mapped_index>();
}
......@@ -158,7 +158,7 @@ namespace Dune {
* \returns a const reference to the i-th child.
*/
template<std::size_t k>
const auto& child (Dune::index_constant<k> = {}) const
const auto& child (index_constant<k> = {}) const
{
return _node->template child<Child<k>::mapped_index>();
}
......@@ -169,7 +169,7 @@ namespace Dune {
*/
template<std::size_t k,
typename std::enable_if<lazy_enable<k>::value, int>::type = 0>
auto childStorage (Dune::index_constant<k> = {})
auto childStorage (index_constant<k> = {})
{
return _node->template childStorage<Child<k>::mapped_index>();
}
......@@ -182,7 +182,7 @@ namespace Dune {
* \returns a copy of the object storing the i-th child.
*/
template<std::size_t k>
auto childStorage (Dune::index_constant<k> = {}) const
auto childStorage (index_constant<k> = {}) const
{
return _node->template childStorage<Child<k>::mapped_index>();
}
......
......@@ -65,7 +65,7 @@ namespace Dune {
*/
template<std::size_t k,
typename std::enable_if<lazy_enabled<k>::value, int>::type = 0>
auto& child(Dune::index_constant<k> = {})
auto& child(index_constant<k> = {})
{
return node().proxiedNode().template child<k>();
}
......@@ -75,7 +75,7 @@ namespace Dune {
* \returns a const reference to the i-th child.
*/
template<std::size_t k>
const auto& child (Dune::index_constant<k> = {}) const
const auto& child (index_constant<k> = {}) const
{
return node().proxiedNode().template child<k>();
}
......@@ -86,7 +86,7 @@ namespace Dune {
*/
template<std::size_t k,
typename std::enable_if<lazy_enabled<k>::value, int>::type = 0>
auto childStorage (Dune::index_constant<k> = {})
auto childStorage (index_constant<k> = {})
{
return node().proxiedNode().template childStorage<k>();
}
......@@ -99,7 +99,7 @@ namespace Dune {
* \returns a copy of the object storing the i-th child.
*/
template<std::size_t k>
auto childStorage (Dune::index_constant<k> = {}) const
auto childStorage (index_constant<k> = {}) const
{
return node().proxiedNode().template childStorage<k>();
}
......
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