projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Future<Unit> global fixup
[folly.git]
/
folly
/
Optional.h
diff --git
a/folly/Optional.h
b/folly/Optional.h
index ee94228e8169593a1e6689323b31de67f8a268e6..f4bc9ff4ce7a36bb47eb82f7a5d49a4d5d7a7e10 100644
(file)
--- a/
folly/Optional.h
+++ b/
folly/Optional.h
@@
-87,6
+87,8
@@
class Optional {
public:
static_assert(!std::is_reference<Value>::value,
"Optional may not be used with reference types");
+ static_assert(!std::is_abstract<Value>::value,
+ "Optional may not be used with abstract types");
Optional()
: hasValue_(false) {