Skip to content

Commit

Permalink
replace assert with throw
Browse files Browse the repository at this point in the history
  • Loading branch information
okdshin committed Mar 14, 2019
1 parent 86ad581 commit 83e304c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menoh/dtype.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace menoh_impl {
if(d == dtype_t::int64) {
return size_in_bytes<dtype_t::int64>;
}
assert(!"not come here");
throw invalid_dtype(std::to_string(static_cast<int>(dtype)));
}

} // namespace menoh_impl
Expand Down

0 comments on commit 83e304c

Please sign in to comment.