Warning: "Possible misuse of comma operator"
- Ngôn ngữ chính
- C++
- Star
- 24
- Fork
- 55
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I'm seeing a warning being emitted by this library when I'm using Xcode 10.3:
https://github.com/boostorg/array/blob/92f66a9f14ca1eef03b6028b01a1cab05e989991/include/boost/array.hpp#L185
> Possible misuse of comma operator here

Initially I thought of making a PR to address it, but I don't really understand the expression at that line. Why is `boost::throw_exception` followed by `, true` ?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start with include/boost/array.hpp at line 185 and inspect the surrounding expression and its uses. Check how the comma expression interacts with boost::throw_exception and why Xcode 10.3 reports it; done means the warning is addressed without changing the expression's intended behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- compilers
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100