Skip to content

Commit 3aad1b6

Browse files
committed
define default to avoid compiler warning
1 parent 643de78 commit 3aad1b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hll/include/HllArray-internal.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ HllArray<A>* HllArray<A>::copyAs(target_hll_type tgtHllType) const {
7979
return HllSketchImplFactory<A>::convertToHll6(*this);
8080
case target_hll_type::HLL_8:
8181
return HllSketchImplFactory<A>::convertToHll8(*this);
82+
default:
83+
throw std::invalid_argument("Invalid target HLL type");
8284
}
8385
}
8486

0 commit comments

Comments
 (0)