summaryrefslogtreecommitdiffstats
path: root/tests/auto/bic/tst_bic.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-24 23:05:34 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-24 23:05:34 +0200
commit25c5de7f168652ff5c3e6e49d09567d3ef4b41fd (patch)
tree3345735961a08f5e0fa657681aa51153d11d3d01 /tests/auto/bic/tst_bic.cpp
parent585d01e0c2833e16899a502d53bfd62a32573b35 (diff)
Adapt the contiguous-creator code to use the new custom deleter code.
We use the same trick as the custom deleter: we allocate memory for an object of class ExternalRefCountWithContiguousData<T>, but we do that only to be certain of the alignment requirements for T. We initialise the d-pointer via placement new and the T object is left for initialisation by the outermost function. The reason for that last trick is to support passing parameters in the future with the least amount of template functions necessary. I still plan on supporting arguments only with C++0x (maybe up to one without).
Diffstat (limited to 'tests/auto/bic/tst_bic.cpp')
0 files changed, 0 insertions, 0 deletions