
On 8/28/04 4:25 AM, "Pavel Vozenilek" <pavel_vozenilek@hotmail.com> wrote:
"Jonathan Turkanis" wrote: [SNIP]
I've attached a version of base_from_member.hpp with configurable maximum arity, defaulting to 10. If you need higher arity, you #define BOOST_BASE_FROM_MEMBER_MAX_ARITY to an appropriate value before including the header.
The same technique will work for streambuf wrapping.
It may be better to use local iteration technique. Some preprocessors (e.g. BCB) have quite low limit on length of expanded macro (BCB has some 1-2kB).
Local iteration is also faster on EDG based frontends.
Do you have an example of this alternate technique? (Or at least what I should look up.)
For base-from-member it is probably safe but streamsbufs may be harder.
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com