Skip to content

Rich - Use nested namespaces and 'if constexpr'

Christopher Rob Jones requested to merge Rich-CXX17Cleanup into master

Adopt a few c++17 features

  • Nested namespaces. So for instance replace
namespace A
{
   namespace B
   { 
       namespace C
       {
       }
   }
}

with

namespace A::B::C
{
}
  • Simplify a number of places using SFINAE to provide scalar and SIMD specific function implementations with a single implementation that internally uses if constexpr.

Note there is a lot of whitespace change in this MR, due to the widescale change in indentation from the namespace changes.

Edited by Christopher Rob Jones

Merge request reports