@@ -518,26 +518,29 @@ template <typename... Args> struct process_attributes {
518
518
static void init (const Args&... args, function_record *r) {
519
519
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100 (r);
520
520
PYBIND11_WORKAROUND_INCORRECT_ALL_GCC_UNUSED_BUT_SET_PARAMETER (r);
521
- PYBIND11_INT_ARRAY_WORKING_AROUND_MSVC_CLANG_ISSUES (
522
- {0 , (process_attribute<typename std::decay<Args>::type>::init (args, r), 0 )...});
521
+ using expander = int [];
522
+ (void ) expander{
523
+ 0 , ((void ) process_attribute<typename std::decay<Args>::type>::init (args, r), 0 )...};
523
524
}
524
525
static void init (const Args&... args, type_record *r) {
525
526
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100 (r);
526
527
PYBIND11_WORKAROUND_INCORRECT_ALL_GCC_UNUSED_BUT_SET_PARAMETER (r);
527
- PYBIND11_INT_ARRAY_WORKING_AROUND_MSVC_CLANG_ISSUES (
528
- {0 , (process_attribute<typename std::decay<Args>::type>::init (args, r), 0 )...});
528
+ using expander = int [];
529
+ (void ) expander{0 ,
530
+ (process_attribute<typename std::decay<Args>::type>::init (args, r), 0 )...};
529
531
}
530
532
static void precall (function_call &call) {
531
533
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100 (call);
532
- PYBIND11_INT_ARRAY_WORKING_AROUND_MSVC_CLANG_ISSUES (
533
- {0 , (process_attribute<typename std::decay<Args>::type>::precall (call), 0 )...});
534
+ using expander = int [];
535
+ (void ) expander{0 ,
536
+ (process_attribute<typename std::decay<Args>::type>::precall (call), 0 )...};
534
537
}
535
538
static void postcall (function_call &call, handle fn_ret) {
536
539
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100 (call, fn_ret);
537
540
PYBIND11_WORKAROUND_INCORRECT_ALL_GCC_UNUSED_BUT_SET_PARAMETER (fn_ret);
538
- PYBIND11_INT_ARRAY_WORKING_AROUND_MSVC_CLANG_ISSUES (
539
- { 0 ,
540
- (process_attribute<typename std::decay<Args>::type>::postcall (call, fn_ret), 0 )...}) ;
541
+ using expander = int [];
542
+ ( void ) expander{
543
+ 0 , (process_attribute<typename std::decay<Args>::type>::postcall (call, fn_ret), 0 )...};
541
544
}
542
545
};
543
546
0 commit comments