Real World Code projects still using `complex<NonFloating>`

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

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

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

評価

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

調査の方向性

Start with the listed RWC source locations, especially the mlpack error trace at lars_impl.hpp:672, and validate affected projects using headers with the attempted removal. The issue asks contributors to report and fix upstream uses of complex<NonFloating>; its checklist identifies dlib, ITK, fmt, mp-units/blaze, Eigen, MLPack, Root, and Tensorflow. Done means affected uses are fixed or confirmed absent upstream, with each project checked against the modified headers.

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

説明

external

We deprecated complex<NonFloating> with #2759. We tried to remove it with #5984, but it had to be restored by #6524.

A bunch of projects in our Real World Code (RWC) test suite were using complex<NonFloating> despite our years of deprecation warnings. If we can get these issues reported upstream and fixed, we can consider attempting removal again (this time possibly with an escape hatch).

The following should be an exhaustive list of affected RWC projects. It is NOT an exhaustive list of breaks. Each project should ideally be validated with modified headers containing the attempted removal.

Click to expand MLPack error:
    C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.52.37025\include\complex(366,19): error C2338: static assertion failed: 'N5054 [complex.numbers.general]/2: "The effect of instantiating the primary template of complex for any type that is not a cv-unqualified floating-point type is unspecified." This implementation forbids such instantiations.' [C:\gitP\mlpack\mlpack\build_amd64\src\mlpack\methods\mlpack_lars.vcxproj]
         (compiling source file '../../../../src/mlpack/methods/lars/lars_main.cpp')
             C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.52.37025\include\complex(366,19):
             the template instantiation context (the oldest one first) is
                 C:\gitP\mlpack\mlpack\src\mlpack\methods\lars\lars_main.cpp(180,11):
                 see reference to function template instantiation or specialization 'double mlpack::LARS<arma::mat>::Train<arma::mat>(const MatType &,const arma::rowvec &,const bool)' being compiled
                 with
                 [
                     MatType=arma::mat
                 ]
                     C:\gitP\mlpack\mlpack\src\mlpack\methods\lars\lars_main.cpp(180,16):
                     see the first reference to 'mlpack::LARS<arma::mat>::Train' in 'lars'
                 C:\gitP\mlpack\mlpack\src\mlpack\methods\lars\lars_impl.hpp(269,10):
                 see reference to function template instantiation or specialization 'double mlpack::LARS<arma::mat>::Train<MatType,arma::rowvec,void,void>(const MatType &,const ResponsesType &,const bool,const bool,const double,const double,const double,const bool,const bool)' being compiled
                 with
                 [
                     MatType=arma::mat,
                     ResponsesType=arma::rowvec
                 ]
                 C:\gitP\mlpack\mlpack\src\mlpack\methods\lars\lars_impl.hpp(672,23):
                 see reference to class template instantiation 'std::complex<unsigned __int64>' being compiled
主要言語
C++
スター
11.2k
フォーク
1.7k
平均マージ
4日 4時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

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

microsoft/STL のほかの issue

microsoft/STL の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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