opencog-dev team mailing list archive
-
opencog-dev team
-
Mailing list archive
-
Message #00209
Smart pointers and OpenCog
Hi all,
I'm currently looking through the PTL code Ari wrote which will be the
basis for PLN in OpenCog.
I've noticed the use of smart pointer construct boost::smart_ptr in
the code, and I can't remember where I heard this, but I think it's a
general rule of thumb to avoid mixing pointer types in a piece of
software.
So this brings up the subject of whether we should use smart pointers
in OpenCog, or whether I should try to factor out the boost smart
pointers... or if we should just ignore this, as I may be misguided in
my idealisations of using only one type of pointer system.
I must admit my experience with smart pointers is quite limited, I've
only used them during my brief stint on AGISim (CrystalSpace made
liberally use of them I think).
J
Follow ups