Boost logo

Boost :

Subject: Re: [boost] [Multiarray] & [Range] MSVC/gcc warning: returning address of local variable or temporary
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-15 12:50:23


Neil Groves wrote:

> I have the same issue in RangeEx. I would like to implement your suggestion.
> Your code looks so fit for purpose that perhaps we should take
> operator_brackets_proxy et al. out of the detail namespace and make it
> common to iterator_facade and to iterator_range? I'm concerned I might be
> being a little slow and that you are suggesting the use of already available
> public boost APIs.

While the proxy technique works fine, wouldn't using decltype or
Boost.Typeof just solve the issue also, with less opportunities for
abstraction overhead?


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