Skip to content

Commit

Permalink
Change comment as suggested by @rainwoodman.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Feb 7, 2024
1 parent ff17ff5 commit 928b5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pybind11_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ union IntFloat {
class UnusualOpRef {
public:
using NonTrivialType = std::shared_ptr<int>; // 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; }

Expand Down

0 comments on commit 928b5b4

Please sign in to comment.