[antlr-interest] C++ library code reference counting classes

Paul Johnson gt54-antlr at cyconix.com
Thu Jun 30 01:42:33 PDT 2005


I'm working my way through the C++ library code, and I have a couple of 
questions (by the way, who wrote this code? Is it 'new', or was it 
translated from a Java source?)

There are at least 3 reference counting classes (RefCount<>, 
ASTRefCount<>, and ASTRef). Is there any particular reason for this, or 
is it just historical? Is there also any reason not to replace the whole 
lot with the Boost/TRI smart pointer classes? This would clean up the 
code a lot.

Thanks

Paul



More information about the antlr-interest mailing list