This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: include/tr1/functional (hash<std::wstring>): Wrap in #ifdef _GLIBCXX_USE_WCHAR_T
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Sat, 19 Feb 2005 16:37:05 +0100
- Subject: Committed: include/tr1/functional (hash<std::wstring>): Wrap in #ifdef _GLIBCXX_USE_WCHAR_T
Committed as obvious.
It seems
libstdc++-v3/testsuite/tr1/6_containers/unordered/instantiate/hash.cc
should be similarly wrapped, because I see the same error
message in the testsuite log.
PR libstdc++/20071
* include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
_GLIBCXX_USE_WCHAR_T.
Index: include/tr1/functional
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/tr1/functional,v
retrieving revision 1.2
diff -p -c -r1.2 functional
*** include/tr1/functional 18 Feb 2005 07:50:07 -0000 1.2
--- include/tr1/functional 19 Feb 2005 15:29:29 -0000
*************** namespace tr1
*** 135,140 ****
--- 135,141 ----
}
};
+ #ifdef _GLIBCXX_USE_WCHAR_T
template <>
struct hash<std::wstring>
{
*************** namespace tr1
*** 146,151 ****
--- 147,153 ----
return result;
}
};
+ #endif
}
}
brgds, H-P