Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-06-28 11:28:26


"Avery Fay" <btmore_at_[hidden]> wrote in message
news:8c0e97d80706272358t40351f2ds1d5e9e4192d15d1d_at_mail.gmail.com...
Thanks for your replies. It turns out that you don't need to export the base
class. I've done some experimenting and this is what I've come up with.
Hopefully, this will help someone else.

1.) You can export from a header file, but if you do you can't include that
header more than one time in your program or you get multiple definition
errors. This goes for one export per header as well as all exports in one
header.

***
I would amend that to say that in order for export to work as advertised, a
header containing it should be included in one and only one module which
also contains archive headers.

2.) Exporting from a source file doesn't work as I posted before. You *have*
to include the iarchive and oarchive headers in your cpp file you're
exporting even if they aren't needed there. Missing one or the other or both
leads to exceptions or plain old crashes.

Unless I'm missing something, the whole export system seems incredibly
fragile.

*** it IS fragile. The latest version by D. Abrahams is much inproved and
will be part of bost 1.35.

Robert Ramey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net