
7 May
2006
7 May
'06
9:48 p.m.
dan marsden <danmarsden@yahoo.co.uk> 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