We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12481f commit 153e7e9Copy full SHA for 153e7e9
libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp
@@ -214,7 +214,7 @@ constexpr bool test_ref() {
214
{
215
int i = 42;
216
std::optional<int&> opt{i};
217
- std::same_as<std::optional<int>> decltype(auto) o2 = opt.transform([](int i) { return i + 2; });
+ std::same_as<std::optional<int>> decltype(auto) o2 = opt.transform([](int j) { return j + 2; });
218
219
assert(*o2 == 44);
220
}
0 commit comments