projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f2a4c
)
Add <new> header for placement new
author
Adam Norton
<anorton@fb.com>
Sat, 9 Apr 2016 02:30:43 +0000
(19:30 -0700)
committer
Facebook Github Bot 0
<facebook-github-bot-0-bot@fb.com>
Sat, 9 Apr 2016 02:35:32 +0000
(19:35 -0700)
Summary: This header is necessary for the placement new operator used in the construct method (line 265)
Reviewed By: yfeldblum
Differential Revision:
D3156741
fb-gh-sync-id:
84a64821553b42d46fb70b5ee267a401028c94f2
fbshipit-source-id:
84a64821553b42d46fb70b5ee267a401028c94f2
folly/Optional.h
patch
|
blob
|
history
diff --git
a/folly/Optional.h
b/folly/Optional.h
index 6fc07b98f47e204f2f5501cca717087b7c5608a1..09b831f8ae2804317d6a0a74559e1ad6824bb1ff 100644
(file)
--- a/
folly/Optional.h
+++ b/
folly/Optional.h
@@
-54,6
+54,7
@@
* }
*/
#include <cstddef>
+#include <new>
#include <stdexcept>
#include <type_traits>
#include <utility>