| 471 | |
| 472 | template <typename T> |
| 473 | int cannot_destroy(lua_State* L) { |
| 474 | return luaL_error(L, |
| 475 | "cannot call the destructor for '%s': it is either hidden (protected/private) or removed with '= " |
| 476 | "delete' and thusly this type is being destroyed without properly destroying, invoking undefined " |
| 477 | "behavior: please bind a usertype and specify a custom destructor to define the behavior properly", |
| 478 | detail::demangle<T>().data()); |
| 479 | } |
| 480 | |
| 481 | template <typename T> |
| 482 | void reserve(T&, std::size_t) { |