|
Boost Users : |
Subject: Re: [Boost-users] [proto]: Adding functions to the lazy vector example
From: Eric Niebler (eric_at_[hidden])
Date: 2010-11-04 11:18:16
On 11/4/2010 9:43 AM, Noman wrote:
>> 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.
This is all described in the docs:
-- Eric Niebler BoostPro Computing http://www.boostpro.com
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