@@ -145,7 +145,7 @@ class NCVirt {
145145class NCVirtTrampoline : public NCVirt {
146146#if !defined(__INTEL_COMPILER) && !defined(__CUDACC__) && !defined(__PGIC__)
147147 NonCopyable get_noncopyable (int a, int b) override {
148- PYBIND11_OVERRIDE (NonCopyable, NCVirt, get_noncopyable, a, b);
148+ PYBIND11_OVERRIDE (NonCopyable, NCVirt, get_noncopyable, a, b, );
149149 }
150150#endif
151151 Movable get_movable (int a, int b) override {
@@ -220,7 +220,7 @@ class test_override_cache_helper {
220220};
221221
222222class test_override_cache_helper_trampoline : public test_override_cache_helper {
223- int func () override { PYBIND11_OVERRIDE (int , test_override_cache_helper, func); }
223+ int func () override { PYBIND11_OVERRIDE (int , test_override_cache_helper, func, ); }
224224};
225225
226226inline int test_override_cache (std::shared_ptr<test_override_cache_helper> const &instance) {
@@ -280,7 +280,7 @@ TEST_SUBMODULE(virtual_functions, m) {
280280 py::print (" PyA.f()" );
281281 // This convolution just gives a `void`, but tests that PYBIND11_TYPE() works to
282282 // protect a type containing a ,
283- PYBIND11_OVERRIDE (PYBIND11_TYPE (typename std::enable_if<true , void >::type), A, f);
283+ PYBIND11_OVERRIDE (PYBIND11_TYPE (typename std::enable_if<true , void >::type), A, f, );
284284 }
285285 };
286286
@@ -303,7 +303,7 @@ TEST_SUBMODULE(virtual_functions, m) {
303303 ~PyA2 () override { py::print (" PyA2.~PyA2()" ); }
304304 void f () override {
305305 py::print (" PyA2.f()" );
306- PYBIND11_OVERRIDE (void , A2, f);
306+ PYBIND11_OVERRIDE (void , A2, f, );
307307 }
308308 };
309309
@@ -371,26 +371,26 @@ TEST_SUBMODULE(virtual_functions, m) {
371371 public:
372372 using OverrideTest::OverrideTest;
373373 std::string str_value () override {
374- PYBIND11_OVERRIDE (std::string, OverrideTest, str_value);
374+ PYBIND11_OVERRIDE (std::string, OverrideTest, str_value, );
375375 }
376376 // Not allowed (enabling the below should hit a static_assert failure): we can't get a
377377 // reference to a python numeric value, since we only copy values in the numeric type
378378 // caster:
379379#ifdef PYBIND11_NEVER_DEFINED_EVER
380380 std::string &str_ref () override {
381- PYBIND11_OVERRIDE (std::string &, OverrideTest, str_ref);
381+ PYBIND11_OVERRIDE (std::string &, OverrideTest, str_ref, );
382382 }
383383#endif
384384 // But we can work around it like this:
385385 private:
386386 std::string _tmp;
387- std::string str_ref_helper () { PYBIND11_OVERRIDE (std::string, OverrideTest, str_ref); }
387+ std::string str_ref_helper () { PYBIND11_OVERRIDE (std::string, OverrideTest, str_ref, ); }
388388
389389 public:
390390 std::string &str_ref () override { return _tmp = str_ref_helper (); }
391391
392- A A_value () override { PYBIND11_OVERRIDE (A, OverrideTest, A_value); }
393- A &A_ref () override { PYBIND11_OVERRIDE (A &, OverrideTest, A_ref); }
392+ A A_value () override { PYBIND11_OVERRIDE (A, OverrideTest, A_value, ); }
393+ A &A_ref () override { PYBIND11_OVERRIDE (A &, OverrideTest, A_ref, ); }
394394 };
395395
396396 py::class_<OverrideTest::A>(m, " OverrideTest_A" )
@@ -502,7 +502,7 @@ class PyC_Repeat : public C_Repeat {
502502 std::string say_something (unsigned times) override {
503503 PYBIND11_OVERRIDE (std::string, C_Repeat, say_something, times);
504504 }
505- double lucky_number () override { PYBIND11_OVERRIDE (double , C_Repeat, lucky_number, ); }
505+ double lucky_number () override { PYBIND11_OVERRIDE (double , C_Repeat, lucky_number); }
506506};
507507class PyD_Repeat : public D_Repeat {
508508public:
0 commit comments