RCU
[folly.git] / folly / fibers / ForEach-inl.h
index 10a7f981bbb30c2e3406ee1b84b81eefd4f502af..073c14f800620847e09b295452a9cb01d8fa9e1e 100644 (file)
@@ -35,7 +35,7 @@ typename std::enable_if<
   g(id);
 }
 
-} // anonymous namespace
+} // namespace
 
 template <class InputIterator, class F>
 inline void forEach(InputIterator first, InputIterator last, F&& f) {
@@ -49,10 +49,6 @@ inline void forEach(InputIterator first, InputIterator last, F&& f) {
   std::exception_ptr e;
   Baton baton;
 
-#ifdef __clang__
-#pragma clang diagnostic push // ignore generalized lambda capture warning
-#pragma clang diagnostic ignored "-Wc++1y-extensions"
-#endif
   auto taskFunc = [&tasksTodo, &e, &f, &baton](size_t id, FuncType&& func) {
     return [
       id,
@@ -72,9 +68,6 @@ inline void forEach(InputIterator first, InputIterator last, F&& f) {
       }
     };
   };
-#ifdef __clang__
-#pragma clang diagnostic pop
-#endif
 
   auto firstTask = first;
   ++first;
@@ -90,5 +83,5 @@ inline void forEach(InputIterator first, InputIterator last, F&& f) {
     std::rethrow_exception(e);
   }
 }
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly