LWG-4406 `optional::value_or` return statement is inconsistent with Mandates

Đang mở
#6,576 0 bình luận 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
54/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Read the optional::value_or implementation and comments, then compare its return statement with LWG-4406 and the superseded LWG-3424 resolution. Remove the obsolete LWG-3424 comments and update the implementation to match the current Mandates; done when the code reflects LWG-4406 and the relevant optional tests pass.

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

Mô tả

LWG

LWG-4406 optional::value_or return statement is inconsistent with Mandates

This resolution supersedes LWG-3424 "optional::value_or should never return a cv-qualified type" which we had implemented with comments, so we need to clean all of that out.

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.