static validation of closed overrider sets
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the BOOST_OPENMETHOD interface and the project’s compile-time dispatch and ambiguity-checking code; the issue provides no file or test names. Determine how a declared set of overriders could be checked for missing or ambiguous virtual tuples while allowing later specializations, then add coverage for those cases. Done means the compile-time guarantee works for the declared set and the documented limitation for later specializations is clear.
索引モデルが issue の本文から書いたものです。
説明
Inspired by https://github.com/Boumg/mini-openmethod.
Many reasonable applications of open-methods require only semi-openness, i.e. the ability to add polymorphic behavior to existing class hierarchies, without the need to specialize existing methods. In that case, the method could optionally specify a set of overriders, which would be checked at compile time for missing or ambiguous virtual tuples. The mechanism could naturally extend BOOST_OPENMETHOD:
BOOST_OPENMETHOD(
poke, (virtual_ptr<Animal>, std::ostream& os), void,
[](virtual_ptr<Cat>, std::ostream& os) {
os << "hiss";
},
[](virtual_ptr<Dog>, std::ostream& os) {
os << "bark";
}
);
User would retain the ability to add specializations afterwards, but then the compile time guarantee would be off.
- 主要言語
- C++
- スター
- 14
- フォーク
- 7
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/openmethod のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
boostorg/openmethod#70 ·
メンテナーはふだん 1 日以内に返信
-
support member functions as overriders対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンenhancement explore
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
boostorg/openmethod#53 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
boostorg/openmethod#11 ·
メンテナーはふだん 1 日以内に返信
boostorg/openmethod の issue をすべて見る
似ている issue
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
psi29a/d2decomped#691 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CachyOS/packageinstaller#144 ·
メンテナーはふだん 1 日以内に返信
-
(S1 - Need confirmation)
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CleverRaven/Cataclysm-DDA#89715 ·
メンテナーはふだん 1 日以内に返信
-
prio:low type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NatronGitHub/Natron#1638 ·
メンテナーはふだん 1 日以内に返信