// { dg-do compile { target c++17 } } #include #ifndef __cpp_lib_invoke # error Feature-test macro for invoke is missing in #elif __cpp_lib_invoke < 201411L # error Feature-test macro for invoke has the wrong value in #endif #if __cplusplus > 202002L #ifndef __cpp_lib_invoke_r # error Feature-test macro for invoke_r is missing in #elif __cpp_lib_invoke_r < 202106L # error Feature-test macro for invoke_r has the wrong value in #endif #elif defined __cpp_lib_invoke_r # error __cpp_lib_invoke_r is defined in before C++23 #endif