From 928b5b4750733ef4edc9bf4ce8839fe8a944ebe4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 7 Feb 2024 11:54:17 -0800 Subject: [PATCH] Change comment as suggested by @rainwoodman. --- tests/pybind11_tests.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pybind11_tests.h b/tests/pybind11_tests.h index e008a8a8..3924cf05 100644 --- a/tests/pybind11_tests.h +++ b/tests/pybind11_tests.h @@ -57,7 +57,7 @@ union IntFloat { class UnusualOpRef { public: using NonTrivialType = std::shared_ptr; // Almost any non-trivial type will do. - // UNUSUAL operators: + // Overriding operator& should not break pybind11. NonTrivialType operator&() { return non_trivial_member; } const NonTrivialType operator&() const { return non_trivial_member; }