cppexpose icon indicating copy to clipboard operation
cppexpose copied to clipboard

Add nullptr semantics to Connection and ScopedConnection

Open j-o opened this issue 7 years ago • 0 comments

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.

j-o avatar Mar 17 '17 10:03 j-o