Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto]: Adding functions to the lazy vector example
From: Noman (noman_bwp_at_[hidden])
Date: 2010-11-04 09:43:45


> How is your INC function any different than pre-increment? If it's no
> different, you could just do this:
>
> proto::make_expr<proto::tag::pre_inc> const INC = {};
>

Its the same. But I want to know the mechanism to add any new function working
on the vectors. That can be INC or can be anything else. The question is how can
I add any function without adding something to the class vector.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net