mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 15:41:36 +02: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> >;
|
template class Foundation_API BasicBufferedBidirectionalStreamBuf<char, std::char_traits<char> >;
|
||||||
#endif
|
#endif
|
||||||
typedef BasicBufferedBidirectionalStreamBuf<char, std::char_traits<char> > BufferedBidirectionalStreamBuf;
|
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> >;
|
template class Foundation_API BasicBufferedStreamBuf<char, std::char_traits<char> >;
|
||||||
#endif
|
#endif
|
||||||
typedef BasicBufferedStreamBuf<char, std::char_traits<char> > BufferedStreamBuf;
|
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> >;
|
template class Foundation_API BasicUnbufferedStreamBuf<char, std::char_traits<char> >;
|
||||||
#endif
|
#endif
|
||||||
typedef BasicUnbufferedStreamBuf<char, std::char_traits<char> > UnbufferedStreamBuf;
|
typedef BasicUnbufferedStreamBuf<char, std::char_traits<char> > UnbufferedStreamBuf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user