#ifndef MIGRAPH_GUARD_MIGRAPHLIB_REQUIRES_HPP #define MIGRAPH_GUARD_MIGRAPHLIB_REQUIRES_HPP #include namespace migraph { template struct and_ : std::is_same, and_<(Bs || true)...>> // NOLINT { }; template using bool_c = std::integral_constant; #ifdef CPPCHECK #define MIGRAPH_REQUIRES(...) class = void #else #define MIGRAPH_REQUIRES(...) \ bool PrivateRequires##__LINE__ = true, \ class = typename std::enable_if{}>::type #endif } // namespace migraph #endif