[antlr-interest] Yet an another TokenStream ( for C++ Target )

Oliver Kowalke oliver.kowalke at gmx.de
Wed Feb 22 01:12:41 PST 2012


> Why not have an option that wraps all Token references inside a 
> std::shared_ptr (or std::tr1::shared_ptr or boost::shared_ptr for 
> backwards compatibility)? 

I would suggest to use boost::intrusive_ptr instead - it is less resource-hungry (intrusive-pointer fits into a register).

Oliver
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


More information about the antlr-interest mailing list