cginternals / cginternals/cppexpose

Add nullptr semantics to Connection and ScopedConnection

未关闭
#29 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
decision required
主要语言
C
星标
28
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 Connection 和 ScopedConnection 的定义及现有测试,然后检查默认构造的实例是如何进行赋值和比较的。当对任一类型赋值 nullptr 或将其与 nullptr 比较时,其行为与对默认构造的连接进行赋值或比较相同,并且有覆盖这两种类型的测试时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。