Note 1: if placed on a array allocator, the function is supposed to return a pointer to an array. For instance resulting from std::make_shared<xxx>(n) (unfortunately supported since C++20 only).
Note 2: in the special case of classes with @Virtual methods, the class to instantiate is the proxy class, with its mangled name, so we need to write things like:
Add support for
@Name
onallocate()
andallocateArray()
. The functions passed as parameter to@Name
will replace the call tonew
.This will be used for instance in (see PR #668):
or (see PR #700):
Note 1: if placed on a array allocator, the function is supposed to return a pointer to an array. For instance resulting from
std::make_shared<xxx>(n)
(unfortunately supported since C++20 only).Note 2: in the special case of classes with
@Virtual
methods, the class to instantiate is the proxy class, with its mangled name, so we need to write things like:which is a bit hacky, but works.
Also included in the PR is an updated and more detailed javadoc comment for
@Adapter
.