cginternals / cginternals/cppexpose

Add nullptr semantics to Connection and ScopedConnection

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
decision required
Dominant language
C
Stars
28
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.