瀏覽代碼

Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268153 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 9 年之前
父節點
當前提交
61a220ae5b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      test/std/thread/futures/futures.async/async.pass.cpp

+ 3 - 3
test/std/thread/futures/futures.async/async.pass.cpp

@@ -132,7 +132,7 @@ int main()
         test<void>(checkVoid, DPID,  f2);
         test<void>(checkVoid, false, std::launch::async, f2);
         test<void>(checkVoid, true,  std::launch::deferred, f2);
-        test<void>(checkVoid, DPID,  std::launch::any, f2);
+        test<void>(checkVoid, DPID,  AnyPolicy, f2);
     }
     {
         using Ret = std::unique_ptr<int>;
@@ -143,11 +143,11 @@ int main()
     {
         std::future<void> f = std::async(f5, 3);
         std::this_thread::sleep_for(ms(300));
-        try { f.get(); assert (false); } catch ( int ex ) {}
+        try { f.get(); assert (false); } catch ( int ) {}
     }
     {
         std::future<void> f = std::async(std::launch::deferred, f5, 3);
         std::this_thread::sleep_for(ms(300));
-        try { f.get(); assert (false); } catch ( int ex ) {}
+        try { f.get(); assert (false); } catch ( int ) {}
     }
 }