#include <type_traits>
Go to the source code of this file.
Macros | |
#define | ApproxMVBB_SFINAE_ENABLE_IF(__meta__) typename std::enable_if< ( __meta__ ) >::type * = nullptr |
#define ApproxMVBB_SFINAE_ENABLE_IF | ( | __meta__ | ) | typename std::enable_if< ( __meta__ ) >::type * = nullptr |
use this macro in sfinae selection in templated functions
template<typename TopoType, typename std::enable_if<MPILayer::isGridTopoBuilder<TopoType>::value>::type * = nullptr typename std::enable_if<MPILayer::isPolymorphic<TopoType>::value>::type * = nullptr
void foo(){}
becomes =>
template<typename TopoType, SFINAE_ENABLE_IF( MPILayer::isGridTopoBuilder<TopoType>::value ), SFINAE_ENABLE_IF( MPILayer::isPolymorphic<TopoType>::value ),
void foo(){}
Definition at line 23 of file SfinaeMacros.hpp.