Subject: Re: [boost] disable_if conundrum
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-12-05 15:23:31
On 12/05/2011 12:15 PM, Marshall Clow wrote:
> On Dec 5, 2011, at 11:39 AM, Jeffrey Lee Hellrung, Jr. wrote:
>> On Mon, Dec 5, 2011 at 11:30 AM, Jeremiah Willcock <jewillco_at_[hidden]>wrote:
>>> Look at lazy_disable_if -- it doesn't get the nested "type" member of the
>>> type you give it unless the condition evaluates to false.
>> Just to supplement: also use an extra level of indirection, a metafunction
>> that maps Range to the return type of foo. So will look like
>> boost::lazy_disable_if_c< condition, foo_result< Range > >::type.
> Yeah, that didn't seem to work for me.
> So - here's some code.
> And here's some error messages (from clang 3.0):
The second argument to lazy_disable_if should be
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk