Feature request: constructor and resize from values
まだ誰も着手していません。
評価
調査の方向性
まず、issue で説明されている multi_array コンストラクターと resize API を見つけ、現在それらがどのように要素を初期化しているか、また std::vector がどのように値を受け取るかを調べます。配列の作成時またはサイズ変更時に value_type を提供するためにサポートされている設計を特定します。デフォルト構築できないクラスを深刻なコンパイラーエラーなしで格納でき、既存の extent ベースの動作も引き続きサポートされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello, this is a copy of my email I sent to the boost-users mailing list, as it might improve visibility.
I'd love to be able to use multi_array with classes that do not have a default constructor. At the moment, this is impossible, as both the constructor and resize functions only take extents as arguments (and possibly some other options), but no value_type, as for example std::vector does. Thus, trying to store objects without a default constructor in a multi_array results in hard compiler errors, with no workaround that I know of.
This happens to me fairly often, as I use multi_array to organize sets of complex objects. If there is a technical reason why this is not possible, I would also be happy to learn it.
- 主要言語
- C++
- スター
- 32
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/multi_array のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
boostorg/multi_array#38 · コメント 2 件 · リアクション 1 件 ·
-
boostorg/multi_array#35 · コメント 2 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
boostorg/multi_array#34 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
boostorg/multi_array#33 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
boostorg/multi_array#32 ·
boostorg/multi_array の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
duckdb/duckdb-wasm#2258 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend オープンcoarray
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
FISCO-BCOS/FISCO-BCOS#5642 ·