noexcept CollectVariadicContext destructor
authorMatthieu Martin <matthieu@fb.com>
Fri, 14 Oct 2016 02:43:20 +0000 (19:43 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 14 Oct 2016 02:53:52 +0000 (19:53 -0700)
Summary: To be explicit about our assumption from D4013691

Reviewed By: andriigrynenko

Differential Revision: D4015816

fbshipit-source-id: 24f984ac9959d0c4c0aeac34b3dce8dfcf2c1354

folly/futures/detail/Core.h

index c4beaa4c43a7e5388101176b065c85161687af1a..337004783b34da97340daed20c04d729dcb2bf71 100644 (file)
@@ -466,7 +466,7 @@ struct CollectVariadicContext {
        std::get<I>(results) = std::move(t);
      }
   }
-  ~CollectVariadicContext() {
+  ~CollectVariadicContext() noexcept {
     if (!threw.exchange(true)) {
       p.setValue(unwrapTryTuple(std::move(results)));
     }