cppexpose
cppexpose copied to clipboard
Add nullptr semantics to Connection and ScopedConnection
The c++ standard library uses nullptr to mean "empty" not only for pointers (e.g., std::function). I suggest to add the same semantics to Connection and ScopedConnection, i.e., assigning and comparing with nullptr has the same effect as assigning and comparing with a default constructed [Scoped]Connection.