Boost logo

Boost :

Subject: Re: [boost] [fusion] pop_back doesn't work on fwd sequences
From: Eric Niebler (eric_at_[hidden])
Date: 2011-08-12 02:50:22


On 8/11/2011 10:26 PM, Joel de Guzman wrote:
> I reverted to the original implementation but used advance<begin,
> size-1> instead of prior. pop_back_iterator is an unwieldy hack and
> while it might be fixable, I am not sure if its CT cost outweigh the
> CT cost of simply using advance<begin, size-1>.

Yowsa! That instantiates O(N) templates for what should be an O(1)
operation. I say leave it as prior until we can think of something better.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk