cginternals / cginternals/cppexpose

Add nullptr semantics to Connection and ScopedConnection

Offen
#29 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
decision required
Vorherrschende Sprache
C
Sterne
28
Forks
12
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.