mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 19:54:38 +01:00
#921: better comment, provide workaround for MSVC only
This commit is contained in:
parent
22c7933fe5
commit
249c064ec7
@ -165,9 +165,13 @@ private:
|
||||
|
||||
|
||||
//
|
||||
// We provide an instantiation for char
|
||||
// We provide an instantiation for char.
|
||||
//
|
||||
#if defined(_WIN32) && defined(POCO_DLL) && !defined(Foundation_EXPORTS) // See #921
|
||||
// Visual C++ needs a workaround - explicitly importing the template
|
||||
// instantiation - to avoid duplicate symbols due to multiple
|
||||
// instantiations in different libraries.
|
||||
//
|
||||
#if defined(_MSC_VER) && defined(POCO_DLL) && !defined(Foundation_EXPORTS)
|
||||
template class Foundation_API BasicBufferedBidirectionalStreamBuf<char, std::char_traits<char> >;
|
||||
#endif
|
||||
typedef BasicBufferedBidirectionalStreamBuf<char, std::char_traits<char> > BufferedBidirectionalStreamBuf;
|
||||
|
@ -157,9 +157,13 @@ private:
|
||||
|
||||
|
||||
//
|
||||
// We provide an instantiation for char
|
||||
// We provide an instantiation for char.
|
||||
//
|
||||
#if defined(_WIN32) && defined(POCO_DLL) && !defined(Foundation_EXPORTS) // See #921
|
||||
// Visual C++ needs a workaround - explicitly importing the template
|
||||
// instantiation - to avoid duplicate symbols due to multiple
|
||||
// instantiations in different libraries.
|
||||
//
|
||||
#if defined(_MSC_VER) && defined(POCO_DLL) && !defined(Foundation_EXPORTS)
|
||||
template class Foundation_API BasicBufferedStreamBuf<char, std::char_traits<char> >;
|
||||
#endif
|
||||
typedef BasicBufferedStreamBuf<char, std::char_traits<char> > BufferedStreamBuf;
|
||||
|
@ -163,9 +163,13 @@ private:
|
||||
|
||||
|
||||
//
|
||||
// We provide an instantiation for char
|
||||
// We provide an instantiation for char.
|
||||
//
|
||||
#if defined(_WIN32) && defined(POCO_DLL) && !defined(Foundation_EXPORTS) // See #921
|
||||
// Visual C++ needs a workaround - explicitly importing the template
|
||||
// instantiation - to avoid duplicate symbols due to multiple
|
||||
// instantiations in different libraries.
|
||||
//
|
||||
#if defined(_MSC_VER) && defined(POCO_DLL) && !defined(Foundation_EXPORTS)
|
||||
template class Foundation_API BasicUnbufferedStreamBuf<char, std::char_traits<char> >;
|
||||
#endif
|
||||
typedef BasicUnbufferedStreamBuf<char, std::char_traits<char> > UnbufferedStreamBuf;
|
||||
|
Loading…
Reference in New Issue
Block a user