Question on boost weak pointers
-
Hi, Have a quick question on Boost weak pointers. Hope this is the place to ask. I found the article Smart Pointers to boost your code[^] and on the paragraph "cyclic references" in the code there is the line
child->myDad = dad;
where does thedad
come from? Can't seem to see it defined anywhere in the code. Thanks for any information. -
Hi, Have a quick question on Boost weak pointers. Hope this is the place to ask. I found the article Smart Pointers to boost your code[^] and on the paragraph "cyclic references" in the code there is the line
child->myDad = dad;
where does thedad
come from? Can't seem to see it defined anywhere in the code. Thanks for any information. -
I think it's just a typo. Should be:
child->myDad = parent;
EDIT: You can download the sources just to be certain :)
-
Hi, Have a quick question on Boost weak pointers. Hope this is the place to ask. I found the article Smart Pointers to boost your code[^] and on the paragraph "cyclic references" in the code there is the line
child->myDad = dad;
where does thedad
come from? Can't seem to see it defined anywhere in the code. Thanks for any information.Why not post this message on that article rather than here? Looking at the article, I think that's a typo -
dad
should beparent
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Why not post this message on that article rather than here? Looking at the article, I think that's a typo -
dad
should beparent
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
I think it's just a typo. Should be:
child->myDad = parent;
EDIT: You can download the sources just to be certain :)
-
Hmmm, if it was a typo to put "dad" instead of "parent", then is the diagram showing dad pointing to the CDad struct a mistake as well?
He probably used
dad
andson
orboy
throughout, then tried to remove the gender specificness as it could be seen as discriminatory? :-)Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
He probably used
dad
andson
orboy
throughout, then tried to remove the gender specificness as it could be seen as discriminatory? :-)Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Actually, if it was a typo then why does the diagram underneath refer to "dad" and the
dad.reset()
? Surely that can't be a typo as well?