Skip to content

Commit 149105d

Browse files
committed
Remove static_assert from declval
1 parent 6d47213 commit 149105d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/kernel_float/meta.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ static constexpr bool is_implicit_convertible =
191191
namespace detail {
192192
template<typename T>
193193
KERNEL_FLOAT_INLINE T& declval() {
194-
static_assert(false, "should not be called!");
194+
while (1)
195+
;
195196
}
196197
} // namespace detail
197198

0 commit comments

Comments
 (0)