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

Đang mở
#6,525 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
testing-qa

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
11.2k
Fork
1.7k
Merge trung bình
4 ngày 4 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/STL

Tất cả issue của microsoft/STL

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.