Allocate storage for instances with object_rep::allocate().
commitd306a7783afdb31b6e66ae0d04a3ebd3a1429029
authorDaniel Wallin <daniel@boostpro.com>
Fri, 6 Nov 2009 19:54:23 +0000 (6 20:54 +0100)
committerDaniel Wallin <daniel@boostpro.com>
Fri, 6 Nov 2009 19:54:23 +0000 (6 20:54 +0100)
tree8ad76a7e3d47b539e0393717f7ece8f5c78fc592
parent39dddd719500607bdfa9b22d500037d2224bc030
Allocate storage for instances with object_rep::allocate().

We would allocate storage using operator new for newly constructed
instances. The memory would later be released with std::free() when the
object_rep was destroyed. Additionally, this allows instances to be
allocated inside the object_rep small buffer.
luabind/detail/constructor.hpp