@@ -315,29 +315,31 @@ TEST_CASE("function static") {
315
315
}
316
316
#endif
317
317
};
318
+ #ifdef SQLITE_ORM_STATIC_CALL_OPERATOR_SUPPORTED
319
+ // note: this static lambda lives up here because of GCC 13.2 and mangling issues
320
+ constexpr auto lambda_static_dummy = [](unsigned long errcode) static {
321
+ return errcode != 0 ;
322
+ };
323
+ #endif
318
324
319
325
SECTION (" detect overloaded call operator" ) {
320
- constexpr auto lambda = [](unsigned long errcode) {
321
- return errcode != 0 ;
322
- };
326
+ constexpr auto lambda = [](unsigned long ) {};
323
327
using lambda_type = std::remove_const_t <decltype (lambda)>;
324
328
325
329
STATIC_REQUIRE (
326
- polyfill::is_detected_v<internal::overloaded_callop_t , bool (unsigned long ) const , lambda_type>);
330
+ polyfill::is_detected_v<internal::overloaded_callop_t , void (unsigned long ) const , lambda_type>);
327
331
STATIC_REQUIRE_FALSE (
328
- polyfill::is_detected_v<internal::overloaded_static_callop_t , bool (unsigned long ) const , lambda_type>);
332
+ polyfill::is_detected_v<internal::overloaded_static_callop_t , void (unsigned long ) const , lambda_type>);
329
333
}
330
334
#ifdef SQLITE_ORM_STATIC_CALL_OPERATOR_SUPPORTED
331
335
SECTION (" detect overloaded static call operator" ) {
332
- constexpr auto lambda = [](unsigned long errcode) static {
333
- return errcode != 0 ;
334
- };
336
+ constexpr auto lambda = [](unsigned long ) static {};
335
337
using lambda_type = std::remove_const_t <decltype (lambda)>;
336
338
337
339
STATIC_REQUIRE_FALSE (
338
- polyfill::is_detected_v<internal::overloaded_callop_t , bool (unsigned long ), lambda_type>);
340
+ polyfill::is_detected_v<internal::overloaded_callop_t , void (unsigned long ), lambda_type>);
339
341
STATIC_REQUIRE (
340
- polyfill::is_detected_v<internal::overloaded_static_callop_t , bool (unsigned long ), lambda_type>);
342
+ polyfill::is_detected_v<internal::overloaded_static_callop_t , void (unsigned long ), lambda_type>);
341
343
}
342
344
#endif
343
345
SECTION (" freestanding function" ) {
0 commit comments