[Bug]: variant index returns wrong value
Offen
- Vorherrschende Sprache
- C++
- Sterne
- 18.1k
- Forks
- 3.2k
- Ø Merge
- 20 Std. 36 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
### 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_
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.