Summary: TSIA
Test Plan: Unit tests
Reviewed By: kedarb@fb.com
FB internal diff:
D652180
class Value,
class StorageType = typename std::decay<Value>::type>
StorageType compose(const GenImpl<Value, Source>& source) const {
class Value,
class StorageType = typename std::decay<Value>::type>
StorageType compose(const GenImpl<Value, Source>& source) const {
- static_assert(std::is_same<StorageType, int>::value, "wtf");
Optional<StorageType> accum;
source | [&](Value v) -> bool {
accum = std::forward<Value>(v);
Optional<StorageType> accum;
source | [&](Value v) -> bool {
accum = std::forward<Value>(v);