Remove unneeded iostream include
authorDelyan Kratunov <delyank@fb.com>
Thu, 17 Nov 2016 00:48:47 +0000 (16:48 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 17 Nov 2016 00:53:32 +0000 (16:53 -0800)
Summary:
Including `iostream` in a header causes anything that uses this header to gain
an extra static initializer for an `std::ios_base::Init` object.
If there are N translation units in a library that use the header, that's N
more static initializers that need to run.

Reviewed By: yfeldblum

Differential Revision: D4191798

fbshipit-source-id: 65b47401b9177177999cff65a47ac8dffa0e0546

folly/experimental/LockFreeRingBuffer.h

index d117926a7c91f3be99f107519e2c29918764ef66..a5c71a449e0ce928c453cbeb02f9e1209cf87e41 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <atomic>
 #include <boost/noncopyable.hpp>
-#include <iostream>
 #include <cmath>
 #include <memory>
 #include <string.h>