Nico Rieck: this patch series fixes visibility issues on Windows as explained in <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-August/031214.html>.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -255,13 +255,13 @@ template<class T, class charT, class traits>
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
template<class _Tp> class _LIBCPP_TYPE_VIS complex;
|
||||
template<class _Tp> class _LIBCPP_TYPE_VIS_ONLY complex;
|
||||
|
||||
template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w);
|
||||
template<class _Tp> complex<_Tp> operator/(const complex<_Tp>& __x, const complex<_Tp>& __y);
|
||||
|
||||
template<class _Tp>
|
||||
class _LIBCPP_TYPE_VIS complex
|
||||
class _LIBCPP_TYPE_VIS_ONLY complex
|
||||
{
|
||||
public:
|
||||
typedef _Tp value_type;
|
||||
@@ -319,11 +319,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
template<> class _LIBCPP_TYPE_VIS complex<double>;
|
||||
template<> class _LIBCPP_TYPE_VIS complex<long double>;
|
||||
template<> class _LIBCPP_TYPE_VIS_ONLY complex<double>;
|
||||
template<> class _LIBCPP_TYPE_VIS_ONLY complex<long double>;
|
||||
|
||||
template<>
|
||||
class _LIBCPP_TYPE_VIS complex<float>
|
||||
class _LIBCPP_TYPE_VIS_ONLY complex<float>
|
||||
{
|
||||
float __re_;
|
||||
float __im_;
|
||||
@@ -379,7 +379,7 @@ public:
|
||||
};
|
||||
|
||||
template<>
|
||||
class _LIBCPP_TYPE_VIS complex<double>
|
||||
class _LIBCPP_TYPE_VIS_ONLY complex<double>
|
||||
{
|
||||
double __re_;
|
||||
double __im_;
|
||||
@@ -435,7 +435,7 @@ public:
|
||||
};
|
||||
|
||||
template<>
|
||||
class _LIBCPP_TYPE_VIS complex<long double>
|
||||
class _LIBCPP_TYPE_VIS_ONLY complex<long double>
|
||||
{
|
||||
long double __re_;
|
||||
long double __im_;
|
||||
|
Reference in New Issue
Block a user