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-23 23:37:52 +00:00
2016-04-22 01:04:55 +00:00
2016-09-29 03:35:41 +00:00
2016-12-24 00:24:44 +00:00
2016-03-09 15:39:39 +00:00
2016-03-09 15:39:39 +00:00
2016-12-30 10:44:00 +00:00
2016-12-05 19:40:12 +00:00
2016-12-28 06:15:01 +00:00
2016-12-29 20:03:55 +00:00
2016-12-14 21:29:29 +00:00
2015-08-26 20:15:02 +00:00
2016-12-28 05:53:01 +00:00
2016-10-28 06:06:50 +00:00
2016-09-15 22:27:07 +00:00
2016-11-18 06:42:17 +00:00
2016-10-25 20:45:17 +00:00
2016-10-25 19:33:14 +00:00
2015-11-07 01:22:13 +00:00
2015-02-13 22:15:32 +00:00
2015-07-18 20:40:46 +00:00
2016-09-15 22:27:07 +00:00
2016-10-14 13:56:58 +00:00
2016-12-23 23:37:52 +00:00
2016-12-15 06:34:54 +00:00
2016-07-12 14:39:13 +00:00
2016-07-12 14:39:13 +00:00
2016-12-28 05:35:32 +00:00
2016-11-17 19:24:04 +00:00
2016-08-25 15:09:01 +00:00
2016-11-18 06:42:17 +00:00
2016-09-02 21:02:11 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2016-04-04 22:49:20 +00:00
2015-10-08 20:37:11 +00:00
2015-10-08 21:17:21 +00:00
2015-10-08 20:37:44 +00:00
2016-11-18 06:42:17 +00:00
2015-10-08 20:38:53 +00:00
2011-10-17 20:05:10 +00:00
2011-10-17 20:05:10 +00:00
2015-06-24 08:44:38 +00:00
2016-12-17 21:28:24 +00:00
2016-11-15 19:15:57 +00:00
2013-08-27 14:22:13 +00:00
2016-12-23 23:37:52 +00:00
2015-10-09 00:26:50 +00:00
2015-11-07 01:22:13 +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
2015-10-09 00:26:50 +00:00
2011-10-17 20:05:10 +00:00
2016-11-08 03:31:42 +00:00
2016-12-30 10:44:00 +00:00
2016-02-10 00:59:02 +00:00
2011-10-17 20:05:10 +00:00
2015-06-24 08:44:38 +00:00
2015-10-09 00:26:50 +00:00
2016-11-08 03:31:42 +00:00
2015-10-09 19:57:37 +00:00
2016-12-24 00:24:44 +00:00
2015-11-06 06:30:12 +00:00
2016-12-23 23:37:52 +00:00
2015-11-06 06:30:12 +00:00
2016-12-23 23:37:52 +00:00
2016-10-31 15:09:10 +00:00
2016-12-29 20:03:55 +00:00
2016-12-24 01:56:25 +00:00
2013-08-26 20:11:32 +00:00
2016-09-26 20:20:00 +00:00
2016-10-27 15:10:07 +00:00
2016-12-30 12:44:58 +00:00
2016-02-20 00:19:45 +00:00
2015-03-26 14:35:46 +00:00
2016-12-24 00:24:44 +00:00
2016-12-28 05:35:32 +00:00
2016-12-08 07:30:01 +00:00
2016-10-10 15:56:01 +00:00
2016-12-28 06:06:09 +00:00
2016-12-24 18:05:32 +00:00
2016-11-19 01:14:15 +00:00
2016-08-17 05:58:40 +00:00
2016-09-24 06:27:28 +00:00
2016-12-23 23:37:52 +00:00
2016-12-08 06:37:41 +00:00
2016-09-04 09:55:12 +00:00
2016-11-18 04:31:09 +00:00
2016-11-14 18:22:19 +00:00
2016-12-23 23:37:52 +00:00
2016-09-16 00:00:48 +00:00
2016-07-21 03:20:17 +00:00
2016-12-24 00:24:44 +00:00
2016-09-25 03:34:28 +00:00
2016-12-24 17:21:03 +00:00
2016-12-14 21:29:29 +00:00
2016-12-23 23:37:52 +00:00
2015-11-06 06:30:12 +00:00
2016-04-13 17:02:23 +00:00
2016-09-16 02:09:26 +00:00
2016-07-21 03:20:17 +00:00
2016-02-20 00:16:41 +00:00
2015-10-09 00:26:50 +00:00
2016-12-23 23:37:52 +00:00
2016-09-26 20:20:00 +00:00
2015-10-09 01:29:09 +00:00
2015-11-06 06:30:12 +00:00
2016-09-16 00:00:48 +00:00
2016-12-28 05:53:01 +00:00
2016-12-05 23:53:23 +00:00
2016-02-11 23:51:02 +00:00
2013-03-06 23:30:19 +00:00
2016-11-14 18:22:19 +00:00
2011-10-17 20:05:10 +00:00
2016-09-11 21:46:40 +00:00
2016-12-15 06:34:54 +00:00
2016-12-27 21:16:48 +00:00
2013-08-12 18:38:34 +00:00
2016-10-05 22:55:10 +00:00
2016-12-28 05:53:01 +00:00
2016-04-22 01:04:55 +00:00
2016-11-17 20:08:43 +00:00
2016-09-16 00:13:55 +00:00
2016-12-04 21:37:37 +00:00
2016-12-28 06:06:09 +00:00
2016-02-10 00:59:02 +00:00
2015-10-09 19:57:37 +00:00