How should RHS operators be handled?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- cpp
調査の方向性
実装ファイル、テスト、エントリーポイントは指定されていません。まず右辺の演算子をサポートする必要があるかを明確にし、次に friend 宣言と提案されたアノテーションを比較して、reflection によってそれらをどのように検出するかを判断してください。これらの演算子について、プロジェクトの構文と動作が決定されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Since interfaces are defined as structs, there is not an obvious way for how binary operators should be defined where the interface is the right-hand side operand, e.g.:
struct S {
friend std::ostream& operator<<(std::ostream& out, const S& self);
};
struct Printable {
// how should this be specified?
};
Is this something we want to support? If so, how should it be written?
One possibility is to write the friend declaration in Printable, but I do not know if there's a way to discover that via reflection. Another is to use the approach from duck, which uses annotations:
struct Printable {
[[=rjk::right_side]]
std::ostream& operator<<(std::ostream& out) const;
};
struct AddableWithInt {
[[=rjk::both_sides]]
int operator+(int) const;
};
However this could be considered too complex / not matching STL style. Any thoughts?
- 主要言語
- C++
- スター
- 12
- フォーク
- 4
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jbcoe/cc-protocol のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jbcoe/cc-protocol#507 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jbcoe/cc-protocol#455 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jbcoe/cc-protocol#407 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jbcoe/cc-protocol#194 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
jbcoe/cc-protocol#513 ·
メンテナーはふだん 1 日以内に返信
jbcoe/cc-protocol の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
itinance/react-native-fs#1270 ·
-
clang:frontend clang:openmp crash
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
llvm/llvm-project#245442 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
ai_p1 comp-sql-syntax
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ClickHouse/ClickHouse#133888 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜2日 初心者へのやさしさ 65/100