Move to `std::vector` or similar and stop using VLAs

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

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
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Start by searching the C++ codebase for variable-length array declarations and identify every affected component. Read the surrounding code and existing tests before choosing replacements; the work is done when the VLA uses are removed, supported alternatives preserve behavior, and the relevant test suite passes.

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

Mô tả

Difficulty-Medium Language-C++ Maintainability OpSys-All

In the future I think we should move to std::vector or similar. VLAs are not supported by some platforms (I think Windows is one of these?).

Originally posted by @DaAwesomeP in https://github.com/OpenLightingProject/ola/issues/2052#issuecomment-4585097491

Ngôn ngữ chính
C++
Star
773
Fork
233
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 OpenLightingProject/ola

Tất cả issue của OpenLightingProject/ola

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.