Fix shadowing warning. Patch from STL@microsoft.com

llvm-svn: 284941
This commit is contained in:
Eric Fiselier 2016-10-23 18:47:58 +00:00
parent d09c04d267
commit d06ee7706c
1 changed files with 1 additions and 1 deletions

View File

@ -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));