static validation of closed overrider sets
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading the BOOST_OPENMETHOD interface and the project’s compile-time dispatch and ambiguity-checking code; the issue provides no file or test names. Determine how a declared set of overriders could be checked for missing or ambiguous virtual tuples while allowing later specializations, then add coverage for those cases. Done means the compile-time guarantee works for the declared set and the documented limitation for later specializations is clear.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Inspired by https://github.com/Boumg/mini-openmethod.
Many reasonable applications of open-methods require only semi-openness, i.e. the ability to add polymorphic behavior to existing class hierarchies, without the need to specialize existing methods. In that case, the method could optionally specify a set of overriders, which would be checked at compile time for missing or ambiguous virtual tuples. The mechanism could naturally extend BOOST_OPENMETHOD:
BOOST_OPENMETHOD(
poke, (virtual_ptr<Animal>, std::ostream& os), void,
[](virtual_ptr<Cat>, std::ostream& os) {
os << "hiss";
},
[](virtual_ptr<Dog>, std::ostream& os) {
os << "bark";
}
);
User would retain the ability to add specializations afterwards, but then the compile time guarantee would be off.
- Ngôn ngữ chính
- C++
- Star
- 14
- Fork
- 7
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của boostorg/openmethod
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
boostorg/openmethod#70 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
support member functions as overridersCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement explore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
boostorg/openmethod#53 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
boostorg/openmethod#11 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của boostorg/openmethod
Issue tương tự
-
kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
psi29a/d2decomped#691 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
CachyOS/packageinstaller#144 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(S1 - Need confirmation)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
CleverRaven/Cataclysm-DDA#89715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
prio:low type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NatronGitHub/Natron#1638 ·
Maintainer thường phản hồi trong vòng 1 ngày