"..." ellipsis operator is generating warnings in C++ >= 26: -Wdeprecated-variadic-comma-omission
まだ誰も着手していません。
評価
調査の方向性
preprocessed.hpp と BOOST_FT_ell マクロから始め、先行する引数がある場合とない場合に、それがどのように生成され使用されるかを追跡します。C++26 モードで結果を検証し、deprecated-variadic-comma-omission 警告が生成されなくなったことを確認します。
索引モデルが issue の本文から書いたものです。
説明
In C++26, it's now deprecated to use constructions like:
void f(int...)
we should explicitly add a comma between the previous arguments and the ellipsis:
void f(int, ...)
In practice, Boost function_types generate quite some warnings in C++26 mode, here is one of them:
/data/mwrep/res/osp/Boost/25-0-0-0/include/boost/function_types/detail/pp_variate_loop/preprocessed.hpp:135:23: error: omission of ',' before varargs '...' is deprecated in C++26 [-Werror=deprecated-variadic-comma-omission]
135 | # define BOOST_FT_ell ...
Since BOOST_FT_ell is sometimes used as the only argument, it's not as easy as just adding a comma at the beginning of BOOST_FT_ell, as there should be a special case for when there is no argument before.
I don't know much about Boost.wave, so I am not sure how to propose a fix here.
- 主要言語
- C++
- スター
- 9
- フォーク
- 42
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/function_types のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
boostorg/function_types#13 ·
-
BOOST_FT_AUTODETECT_CALLING_CONVENTIONS ignored when including <boost/uuid/random_generator.hpp> オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
boostorg/function_types#7 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
boostorg/function_types#5 · コメント 1 件 ·
boostorg/function_types の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google/libultrahdr#485 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
godotengine/godot#123776 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ros2/common_interfaces#344 ·