Removing test code from `first`
authorTom Jackson <tjackson@fb.com>
Fri, 7 Dec 2012 22:32:25 +0000 (14:32 -0800)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:49:30 +0000 (14:49 -0800)
Summary: TSIA

Test Plan: Unit tests

Reviewed By: kedarb@fb.com

FB internal diff: D652180

folly/experimental/Gen-inl.h

index 2721a63983a7e304508073259c77052653a3cbb5..6473b25435425ee6f33fb54d665370f710469790 100644 (file)
@@ -1011,7 +1011,6 @@ class First : public Operator<First> {
            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);