Should `protocol<I>` conform to `I`?

オープン
#262 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
tooling

調査の方向性

まず is_protocol_conformant<I, protocol> と conformance_candidates_of から始め、#229 と #244 のスコープおよびレビューの議論を読んでください。trait が対象とすべき protocol の候補と構成を特定してください。完了とは、合意された設計とそれに対応する動作が定まり、連鎖した vtables に伴うリスクに対処できていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

design

Split from #229, which #244 resolves by adding view constructions only.

is_protocol_conformant<I, protocol<I>>() remains false: the synthesised members of protocol<I> are data members holding thunk objects, not member functions, so conformance_candidates_of never sees them.

#244 originally made protocol<J> conform to I when J's vtable has an entry named by the mangled signature of every member function of I, but review scoped this out:

Decide whether the trait should hold (and for which candidates), and what construction, if any, it should enable.

主要言語
C++
スター
12
フォーク
4
平均マージ
1日 11時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jbcoe/cc-protocol のほかの issue

jbcoe/cc-protocol の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。