folly: fix make_optional compliation issue with gnu++17
[folly.git] / folly / TimeoutQueue.h
index 6473cbbcb12afbca74c48b843c33e97a6692446a..9b90328fef459f324327080d547cc2bb1b46583b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2011-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * @author Tudor Bosman (tudorb@fb.com)
  */
 
-#ifndef FOLLY_TIMEOUTQUEUE_H_
-#define FOLLY_TIMEOUTQUEUE_H_
+#pragma once
 
-#include <stdint.h>
+#include <cstdint>
 #include <functional>
-#include <boost/multi_index_container.hpp>
+
 #include <boost/multi_index/indexed_by.hpp>
-#include <boost/multi_index/ordered_index.hpp>
 #include <boost/multi_index/member.hpp>
+#include <boost/multi_index/ordered_index.hpp>
+#include <boost/multi_index_container.hpp>
 
 namespace folly {
 
@@ -126,7 +126,4 @@ class TimeoutQueue {
   Id nextId_;
 };
 
-}  // namespace folly
-
-#endif /* FOLLY_TIMEOUTQUEUE_H_ */
-
+} // namespace folly