Files
libcxx/include
Eric Fiselier 687c0bbee4 Fix PR19460 - std::ios is convertible to int.
std::basic_ios has an operator bool(). In C++11 and later
it is explicit, and only allows contextual implicit conversions.

However explicit isn't available in C++03 which causes std::istream (et al)
to have an implicit conversion to int. This can easily cause ambiguities
when calling operator<< and operator>>.

This patch uses a "bool-like" type in C++03 to work around this. The
"bool-like" type is an arbitrary pointer to member function type. It
will not convert to either int or void*, but will convert to bool.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290750 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-30 12:44:58 +00:00
..
2016-12-24 00:24:44 +00:00
2016-10-25 20:45:17 +00:00
2016-12-23 23:37:52 +00:00
2016-12-15 06:34:54 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2015-10-08 20:37:11 +00:00
2015-10-08 20:37:44 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2016-12-23 23:37:52 +00:00
2015-10-08 20:41:26 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2015-10-09 19:57:37 +00:00
2016-12-24 00:24:44 +00:00
2016-12-23 23:37:52 +00:00
2016-02-20 00:19:45 +00:00
2016-12-24 00:24:44 +00:00
2016-10-10 15:56:01 +00:00
2016-12-24 18:05:32 +00:00
2016-09-24 06:27:28 +00:00
2016-12-23 23:37:52 +00:00
2016-09-04 09:55:12 +00:00
2016-12-23 23:37:52 +00:00
2016-12-24 00:24:44 +00:00
2016-12-23 23:37:52 +00:00
2016-02-20 00:16:41 +00:00
2016-12-23 23:37:52 +00:00
2015-10-09 01:29:09 +00:00
2011-10-17 20:05:10 +00:00
2016-12-15 06:34:54 +00:00
2015-10-09 19:57:37 +00:00