Skip to content

Commit 7c3cd0d

Browse files
committed
fix: wrap throw in small::detail::throw_exception
1 parent 5f39db3 commit 7c3cd0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/small/vector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,8 @@ namespace small {
12431243
std::enable_if_t<!std::is_trivially_copyable_v<T2>, int> = 0>
12441244
void
12451245
copy_inline_trivial(vector const &) {
1246-
throw std::logic_error(
1247-
"Attempting to trivially copy not trivially copyable type");
1246+
small::detail::throw_exception(std::logic_error(
1247+
"Attempting to trivially copy not trivially copyable type"));
12481248
}
12491249

12501250
/// \brief Make it empty and with no heap

0 commit comments

Comments
 (0)