[Development] Qt 5.9's new garbage collector documentation? + root_ptr
Phil Bouchard
philippeb8 at gmail.com
Mon Jul 10 00:35:43 CEST 2017
On 07/09/2017 05:40 PM, Thiago Macieira wrote:
> On sábado, 8 de julho de 2017 15:57:50 PDT Phil Bouchard wrote:
>> https://github.com/philippeb8/root_ptr/blob/develop/example/javascript_examp
>> le1.cpp
>>
>> The application outputs:
>> Scope 0: BEGIN
>> Scope 1: BEGIN
>> A::A(const boost::node_proxy&)
>> A::A(const boost::node_proxy&)
>> A::~A()
>> Scope 1: END
>> A::~A()
>> Scope 0: END
>
> Why are there two A::A and two A::~A in the output if the source has four
> objects created?
I updated javascript_example1.cpp so the aforementioned output is out of
sync with the source file. I should have copied and pasted the source.
Please see the last thread [root_ptr]... for today's updates regarding it.
>> Which is exactly what we want. Note that I didn't stress tested it yet.
>> If you don't mind I will start a new thread with the Boost mailing
>> list to see their opinion.
>
> You'll also need to disentangle it from Boost before it can be used in Qt.
> Move it to independent headers depending only on the C++98 standard library (
> C++11 core language features are ok).
The licenses are incompatible? I think I was relying heavily on
<boost/smart_ptr/detail/sp_counted_base.hpp> because Peter Dimov wrote a
portable atomic reference counter. I'm sure there is an equivalent in
Qt but I'll need some pointers to speed things up.
But thanks again, I really appreciate.
Regards,
-Phil
More information about the Development
mailing list