Skip to content

Make Indices::Literals an inline namespace

Simon Praetorius requested to merge issue/literals-inline-namespace into master

Summary

Following the convention of std::literals we make the namespace Literals an inline namespace. This allows to either import all indices related members, by using namespace Dune::Indices or just the literals using namespace Dune::Indices::Literals.

Note, nested inline namespace definitions are available with c++20 only. Thus I had to explicitly nest the outer and inner namespace.

Merge request reports

Loading