Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-01-06 11:15:24


Thorsten Ottosen wrote:
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:crf6sd$m1t$1_at_sea.gmane.org...
> |
> | > And this is really bad. I can't provide all these overloads in
> boost.assign
> | > for
> | > 2-5 arguements, say.
> |
> | Sure you can. That's only 16 overloads. Use the preprocessor.
>
> AFAICT, up to 5 arguments would give 32 + 16 + 8 + 4 + 2 = 62
> overloads.

You're right; what was I thinking?

> That's a lot of code to parse in a header. How much will this affect
> compilation time?

Not much, based on what I've seen in the past, but you'll never know
until you try it.

> Given that the usage is minimal
> in the boost.assign I'm not so keen about doing this currently.

It's your party.

-- 
Dave Abrahams
Boost Consulting
http://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