Committed: include/tr1/functional (hash<std::wstring>): Wrap in #ifdef _GLIBCXX_USE_WCHAR_T
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Sat Feb 19 23:42:00 GMT 2005
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
More information about the Libstdc++
mailing list