Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2004-12-23 08:01:41


John Maddock wrote:

>
> Correct, the problem comes when you're using third party code, which
> uses other third party code and so on, just try using
> std::list<myclass> in an exported class and you'll see what I mean.
> See also the discussion of dependencies at
> http://www.boost.org/more/separate_compilation.html#dlls
>
Thanks you for the pointer.
I assume the pragmas should surround the usage of the base class then
rather than the definiton? Correct?

I.e.:

#ifdef BOOST_MSVC
# pragma warning(push)
# pragma warning(disable : 4251 4231 4660)
#endif

class BOOST_THREAD_DECL thread : private noncopyable
{

// code here
}

#ifdef BOOST_MSVC
#pragma warning(pop)
#endif

Roland


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