Pieter Wuille
eb0b56b190
Simplify serialize.h's exception handling
...
Remove the 'state' and 'exceptmask' from serialize.h's stream implementations,
as well as related methods.
As exceptmask always included 'failbit', and setstate was always called with
bits = failbit, all it did was immediately raise an exception. Get rid of
those variables, and replace the setstate with direct exception throwing
(which also removes some dead code).
As a result, good() is never reached after a failure (there are only 2
calls, one of which is in tests), and can just be replaced by !eof().
fail(), clear(n) and exceptions() are just never called. Delete them.
2014-08-09 01:43:23 +02:00
..
2014-06-23 14:04:38 -04:00
2014-06-21 19:47:43 +02:00
2014-06-21 19:47:43 +02:00
2014-05-13 11:41:59 +02:00
2014-05-09 18:23:34 +02:00
2014-07-17 22:15:21 -04:00
2014-08-01 07:51:24 +02:00
2014-07-01 12:27:19 -04:00
2014-08-09 01:43:23 +02:00
2014-07-30 23:25:30 -04:00
2014-07-16 21:14:26 +02:00
2014-06-25 09:24:50 +02:00
2014-07-24 16:08:59 +02:00
2014-06-26 10:36:57 +02:00
2014-05-10 00:42:31 +02:00
2014-07-01 12:13:37 +02:00
2014-07-29 11:13:27 -04:00
2014-07-29 11:13:27 -04:00
2014-07-01 12:13:37 +02:00
2014-06-15 15:38:22 +02:00
2014-07-21 11:50:07 -07:00
2014-07-21 11:50:07 -07:00
2014-07-14 11:35:30 +02:00
2014-06-25 10:31:35 +02:00
2014-07-15 10:26:44 +02:00
2014-07-15 10:26:44 +02:00
2014-07-28 14:54:08 +02:00
2014-06-26 10:36:57 +02:00
2014-07-01 12:13:37 +02:00
2014-07-15 09:14:33 +02:00
2014-07-14 16:13:08 +02:00
2014-07-17 15:46:25 +02:00
2014-08-01 08:39:06 +02:00
2014-08-01 08:39:06 +02:00
2014-08-01 08:39:06 +02:00
2014-07-21 07:46:34 +02:00
2014-07-21 07:46:34 +02:00
2014-04-01 09:41:49 +02:00
2014-06-21 19:47:39 +02:00
2014-06-21 19:47:43 +02:00
2014-07-30 11:06:33 +02:00
2014-06-26 10:36:57 +02:00
2014-07-09 09:42:18 +02:00
2014-06-03 12:09:51 -07:00
2014-07-02 15:48:39 +02:00
2014-07-02 15:48:39 +02:00
2014-05-12 12:52:39 +02:00
2014-05-22 00:23:03 +07:00
2014-08-09 01:43:23 +02:00
2014-07-27 00:41:03 +02:00
2014-07-29 11:13:27 -04:00
2014-07-29 11:13:27 -04:00
2014-07-29 11:13:27 -04:00
2014-07-29 11:13:27 -04:00
2014-07-11 15:24:29 +02:00
2014-06-21 19:47:39 +02:00
2014-05-30 12:01:53 +02:00
2014-07-29 11:04:46 -04:00
2014-07-24 17:28:47 +02:00
2014-07-17 22:12:44 +02:00
2014-07-17 22:12:44 +02:00
2014-02-09 21:06:06 -05:00
2014-07-07 10:20:28 +02:00
2014-06-23 23:10:24 +02:00
2014-06-04 13:29:36 +02:00
2014-06-21 11:43:23 -04:00
2014-07-09 09:43:55 +02:00
2014-07-09 09:42:19 +02:00
2014-07-10 00:34:18 -03:00
2014-07-15 05:20:52 +02:00
2014-06-15 15:38:22 +02:00
2014-07-22 08:58:49 +02:00
2014-07-29 11:13:27 -04:00
2014-07-28 19:30:58 +02:00
2014-07-17 15:10:29 +02:00
2014-07-04 09:20:39 +02:00
2014-06-28 19:16:15 -07:00
2014-07-29 11:13:27 -04:00
2014-07-14 11:35:30 +02:00
2014-07-11 14:48:02 +02:00
2014-07-29 11:13:27 -04:00
2014-07-09 09:42:19 +02:00
2014-07-02 15:48:40 +02:00
2014-08-09 01:43:23 +02:00
2014-02-18 12:11:46 -05:00
2014-07-11 14:48:02 +02:00
2014-07-24 19:00:24 +02:00
2014-06-25 09:24:50 +02:00
2014-02-28 09:25:00 +01:00
2014-07-01 12:48:16 +02:00
2014-07-01 12:48:16 +02:00
2014-07-23 15:40:52 +02:00
2014-07-03 14:42:16 -04:00
2014-07-21 07:46:33 +02:00
2014-07-14 16:13:08 +02:00
2014-07-14 16:13:08 +02:00
2014-07-15 10:26:44 +02:00
2014-07-09 09:42:19 +02:00
2014-06-12 13:52:15 +02:00
2014-07-24 16:08:59 +02:00
2014-07-21 07:46:33 +02:00
2014-07-21 07:46:33 +02:00
2014-07-02 15:48:39 +02:00
2014-07-02 15:48:39 +02:00