abseil / abseil/abseil-cpp

[Bug]: variant index returns wrong value

Đang mở
#1,525 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
18.1k
Fork
3.2k
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
1

Mô tả

### Describe the issue

variant index returns wrong value

### Steps to reproduce the problem

std::variant test_std = "test";
absl::variant test_absl = "test";
std::cout << test_std.index() << " <->" << test_absl.index(); // 0 <-> 1

### What version of Abseil are you using?

Current Chromium Code

### What operating system and version are you using?

Win 11

### What compiler and version are you using?

Current Chromium Code

### What build system are you using?

Current Chromium Code

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.