folly: avoid compile warning/failure due to lvalue-to-rvalue conversion
[folly.git] / folly / io / TypedIOBuf.h
index 9ccb7bc54e30b472b61f3bd5e1f648c933048ae5..382151e70485b724d2d314daf4728ba4d6f3e8d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#ifndef FOLLY_IO_TYPEDIOBUF_H_
-#define FOLLY_IO_TYPEDIOBUF_H_
+#pragma once
 
 #include <algorithm>
 #include <iterator>
 #include <type_traits>
 
-#include <folly/Malloc.h>
 #include <folly/io/IOBuf.h>
+#include <folly/memory/Malloc.h>
 
 namespace folly {
 
@@ -213,7 +212,4 @@ class TypedIOBuf {
   IOBuf* buf_;
 };
 
-}  // namespace folly
-
-#endif /* FOLLY_IO_TYPEDIOBUF_H_ */
-
+} // namespace folly