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

Gokulakannan Somasundaram gokul007 at gmail.com
Wed Feb 22 03:54:57 PST 2012


Yeah. But i don't want to make ANTLR C++ Target based on boost and C++11x.
But the option is open for any of the user to re-implement things using
traits.

Second, boost::shared_ptr cannot be used here. If you look at the token
life-cycle you can understand.

Gokul.

On Wed, Feb 22, 2012 at 5:12 PM, Oliver Kowalke <oliver.kowalke at gmx.de>wrote:

> > 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
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list