Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-07-08 14:23:23


Alexander Nasonov <alnsn-mycop_at_[hidden]> writes:

> Well, sometimes it's needed at compile-time. Though, I don't know how useful
> it is. Can you give an example?

Heh, you caught me!

Well, if the (member) (function) pointers are available at compile
time they can be inlined away so that using them becomes more
efficient.

Suppose I want to write serialization code? Can you
serialize/deserialize with a runtime-only framework?

> Some other questions. How to map member pointers to names?

Add a char const* const parameter? Have an additional parallel array
of names?

> How to find a member?

By name? By reverse-indexing whatever structure answers the previous
question, of course!

-- 
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