diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-24 21:05:34 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-24 21:05:34 (GMT) |
commit | 25c5de7f168652ff5c3e6e49d09567d3ef4b41fd (patch) | |
tree | 3345735961a08f5e0fa657681aa51153d11d3d01 /tests/auto/patternistexamples | |
parent | 585d01e0c2833e16899a502d53bfd62a32573b35 (diff) | |
download | Qt-25c5de7f168652ff5c3e6e49d09567d3ef4b41fd.zip Qt-25c5de7f168652ff5c3e6e49d09567d3ef4b41fd.tar.gz Qt-25c5de7f168652ff5c3e6e49d09567d3ef4b41fd.tar.bz2 |
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/patternistexamples')
0 files changed, 0 insertions, 0 deletions