-Wno-deprecated-declarations needed to compile boost-1.89 with -Werror on

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
build-system

調査の方向性

まず boost/multi_array/storage_order.hpp と boost/array.hpp を確認し、特に非推奨の assign 呼び出しと、レポートに示されている Boost.Deprecated の定義を確認します。Clang および -Werror でのコンパイルについて、関連する Boost.MultiArray のテストまたはビルド設定を確認します。完了の条件は、利用者がこの非推奨警告を抑制しなくても Boost 1.89 のヘッダーをコンパイルできることです。

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

説明

When upgrading from boost-1.86 to 1.89, got the following error when building my files that include boost headers:

In file included from src/ComputeStats.cpp:18:
In file included from /dsat/boost/rhel8_intel64_icpx/include/boost/multi_array.hpp
In file included from /dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/base.hpp
/dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/storage_order.hpp:51:18: error: 'assign' is deprecated: please use 'fill' instead [-Werror, -Wdeprecated-decratations]
   51 |   ascending_.assign(true);
        |
/dsat/boost/rhel8_intel64_icpx/include/boost/multi_array/multi_array_ref.hpp:113:18: note: in instantiation of member function 'boost:general_storage_order<2>::general_storage_order' requested here
  113 |   base_(base), storage_(c_storage_order()) {
         |
....
/dsat/boost/rhel8_intel64_icpx/include/boost/array.hpp:193:9: note: 'assign' has been explicitly marked deprecated here
 193 |   BOOST_DEPRECATED( "please use 'fill' instead" )
        |
/dsat/boost/rhel8_intel64_icpx/include/boost/config/compiler/clang.hpp:346:46: note: expanded from macro 'BOOST_DEPRECATED'
 346 | #define BOOST_DEPRECATED(msg) __attribute__((deprecated(msg)))
1 error generated

I can work around this by adding -Wno-deprecated-declarations to my cxx flags, but since this is internal to boost, I think it should be addressed. Thank you!

主要言語
HTML
スター
8.6k
フォーク
2k
平均マージ
9時間 35分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

boostorg/boost のほかの issue

boostorg/boost の issue をすべて見る

似ている issue

Build System の issue をもっと見る

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

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