
AMDG 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@osl.iu.edu>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 detail::range_pair<Range>, not typename detail::range_pair<Range>::type In Christ, Steven Watanabe