We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ae0a2 commit e262b7cCopy full SHA for e262b7c
include/nanobind/nb_class.h
@@ -480,7 +480,7 @@ class class_ : public object {
480
using Base = typename detail::extract<T, detail::is_base, Ts...>::type;
481
using Alias = typename detail::extract<T, detail::is_alias, Ts...>::type;
482
483
- static_assert(sizeof(Alias) < (1 << 24), "Instance size is too big!");
+ static_assert(sizeof(Alias) < (((uint64_t) 1) << 32), "Instance size is too big!");
484
static_assert(alignof(Alias) < (1 << 8), "Instance alignment is too big!");
485
static_assert(
486
sizeof...(Ts) == !std::is_same_v<Base, T> + !std::is_same_v<Alias, T>,
0 commit comments