Fix shadowing warning. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@284941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,8 +81,8 @@ void test_multi_arg()
|
||||
{
|
||||
test_one_arg<T>();
|
||||
using Opt = std::optional<T>;
|
||||
Opt opt;
|
||||
{
|
||||
Opt opt;
|
||||
opt.emplace(101, 41);
|
||||
assert(static_cast<bool>(opt) == true);
|
||||
assert(*opt == T(101, 41));
|
||||
|
||||
Reference in New Issue
Block a user