Improve SingletonThreadLocal performance
[folly.git] / folly / Poly.cpp
index 352b1a0fedfd7a6c79f4744c287b341f8bf7be1c..93829baf3c92c0a7ab0447b90fddf5574b88208e 100644 (file)
  * limitations under the License.
  */
 
+#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
+#pragma message "Folly.Poly requires gcc-5 or greater"
+#else
+
 #include <folly/Poly.h>
 
 namespace folly {
@@ -22,3 +26,5 @@ namespace detail {
 [[noreturn]] void throwBadPolyCast() { throw BadPolyCast(); }
 } // namespace detail
 } // namespace folly
+
+#endif