
23 Dec
2004
23 Dec
'04
1:01 p.m.
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