MCPcopy Create free account
hub / github.com/ThePhD/sol2 / cannot_destroy

Function cannot_destroy

include/sol/stack_core.hpp:473–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected