Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-11 10:14:29


"David Abrahams" <dave_at_[hidden]> wrote in message
news:uvfekn9qc.fsf_at_boost-consulting.com...
> "Jonathan Turkanis" <technews_at_[hidden]> writes:

> >
> > What would be nice is a macro BOOST_DECLSPEC(xxx) which expands to
> >
> > 1. __declspec(dllexport) if
> >
> > a. BOOST_HAS_DECLSPEC are BOOST_xxx_SOURCE defined AND
> > b. one of BOOST_ALL_DYN_LINK and BOOST_xxx_DYN_LINK is defined
> >
> > 2. __declspec(dllimport) if
> > a. BOOST_HAS_DECLSPEC is defined
> > b. BOOST_xxx_SOURCE is not defined
> > c. one of BOOST_ALL_DYN_LINK and BOOST_xxx_DYN_LINK is defined
> >
> > 3. nothing, otherwise.
> >
> > Paul Mensonides once sent me some code which does a much simple version of
the
> > above, but it included four headers from Boost.PP and was 29 lines long.
>
> I don't think that should be an obstacle, if it gets the job done
> efficiently.

I guess you're right. I was thinking it would go in <boost/config.hpp>, but
really it could go in <boost/config/declspec.hpp>, for example.

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk