Skip to content

Commit 046c7a1

Browse files
committed
updated overly restrictive instance size limitation
1 parent 95ae0a2 commit 046c7a1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/nanobind/nb_class.h

-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ class class_ : public object {
480480
using Base = typename detail::extract<T, detail::is_base, Ts...>::type;
481481
using Alias = typename detail::extract<T, detail::is_alias, Ts...>::type;
482482

483-
static_assert(sizeof(Alias) < (1 << 24), "Instance size is too big!");
484483
static_assert(alignof(Alias) < (1 << 8), "Instance alignment is too big!");
485484
static_assert(
486485
sizeof...(Ts) == !std::is_same_v<Base, T> + !std::is_same_v<Alias, T>,

0 commit comments

Comments
 (0)