cginternals / cginternals/cppexpose
Add nullptr semantics to Connection and ScopedConnection
- 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
Research direction
Start by locating the definitions and existing tests for Connection and ScopedConnection, then inspect how default-constructed instances are assigned and compared. Done means assigning or comparing either type with nullptr has the same behavior as assigning or comparing with a default-constructed connection, with tests covering both types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100