projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix EventBaseLoopController destruction races
[folly.git]
/
folly
/
Optional.h
diff --git
a/folly/Optional.h
b/folly/Optional.h
index 84f5d4439ea1300efda80d342ff5b35009dade31..1832009054bb3a42ea71981837083dc20f7e15d7 100644
(file)
--- a/
folly/Optional.h
+++ b/
folly/Optional.h
@@
-91,6
+91,8
@@
class OptionalEmptyException : public std::runtime_error {
template<class Value>
class Optional {
public:
+ typedef Value value_type;
+
static_assert(!std::is_reference<Value>::value,
"Optional may not be used with reference types");
static_assert(!std::is_abstract<Value>::value,