|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-05-07 17:48:44
dan marsden <danmarsden_at_[hidden]> writes:
> We're considering a utility metafunction that can be used to generate the
> return type for the various places where element access is required:
>
> element_ref<Seq, Element>::type
>
> It will then do the add_reference and add_const if needed based on the Seq
> the element is from. It can then be used to avoid the fiddling above in what I
> suspect is the common case.
>
> Is this sufficient improvement, or did you have something grander in
> mind?
Well, it's a good start, but I think it might be possible to further
reduce the overhead of extending the library.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk