abseil / abseil/abseil-cpp

[Bug]: variant index returns wrong value

オープン
#1,525 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
18.1k
フォーク
3.2k
平均マージ
20時間 36分
マージ済み PR(30日)
1

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。