Gabe Black
ed0a56c185
base: Apply the stl_helpers helper judiciously.
...
The existing template would apply the helper operator to *any* template
which took two types, regardless of what that template was. The
assumption was that those types *must* be STL containers, because no
other template takes two types, right?
Instead, this new version uses type traits to explicitly whitelist types
which the helper applies to. Currently the only type it seems to be used
with is std::vector, but by defining more specializations of
IsHelpedContainer, other types/templates can be enabled as well.
This is particularly important when moving to c++17, since the
std::string class would then apparently match the old overload. That
makes the << operator ambiguous and breaks the build.
Change-Id: Id283746a2ccced8882fa23e6f9e69fe22e206b70
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45901
Reviewed-by: Gabe Black <gabe.black@gmail.com >
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br >
Maintainer: Gabe Black <gabe.black@gmail.com >
Tested-by: kokoro <noreply+kokoro@google.com >
2021-05-25 21:59:49 +00:00
..
2020-11-14 10:01:43 +00:00
2021-03-18 22:25:17 +00:00
2021-05-14 10:02:14 +00:00
2021-05-19 21:42:34 +00:00
2021-05-14 10:02:14 +00:00
2020-09-08 16:24:35 +00:00
2020-02-17 10:05:59 +00:00
2021-03-11 04:14:17 +00:00
2021-03-11 04:14:17 +00:00
2020-09-08 16:24:28 +00:00
2021-01-13 18:18:40 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 23:31:03 +00:00
2020-02-17 10:05:59 +00:00
2021-02-17 22:33:50 +00:00
2021-03-09 04:43:26 +00:00
2021-03-09 01:03:13 +00:00
2021-02-17 22:33:50 +00:00
2021-03-19 20:57:24 +00:00
2020-02-17 10:05:59 +00:00
2021-05-11 20:16:31 +00:00
2020-09-08 16:26:40 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2021-02-19 10:33:40 +00:00
2021-02-19 10:33:40 +00:00
2021-01-09 13:18:48 +00:00
2021-01-09 13:18:48 +00:00
2021-01-21 19:28:42 +00:00
2021-01-21 19:28:42 +00:00
2020-12-31 10:18:36 +00:00
2020-12-31 10:18:36 +00:00
2021-05-21 10:05:09 +00:00
2020-09-08 16:29:09 +00:00
2020-02-17 10:05:59 +00:00
2021-04-15 08:15:45 +00:00
2020-02-17 10:05:59 +00:00
2021-01-23 07:19:20 +00:00
2021-05-11 20:16:31 +00:00
2021-01-23 07:19:20 +00:00
2020-02-17 10:05:59 +00:00
2021-02-05 09:34:21 +00:00
2020-09-08 16:32:38 +00:00
2020-09-08 16:29:50 +00:00
2021-05-10 11:16:36 +00:00
2021-05-10 20:00:48 +00:00
2021-05-14 18:14:15 +00:00
2021-05-10 20:02:11 +00:00
2021-05-10 23:32:33 +00:00
2021-01-23 12:09:34 +00:00
2020-09-16 07:57:40 +00:00
2020-02-17 10:05:59 +00:00
2021-01-19 03:27:04 +00:00
2021-01-19 03:27:04 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2021-02-19 16:41:09 +00:00
2021-02-19 16:41:09 +00:00
2021-05-11 20:16:31 +00:00
2020-02-17 10:05:59 +00:00
2021-05-19 20:05:46 +00:00
2021-05-19 20:05:46 +00:00
2021-01-23 12:09:34 +00:00
2021-01-22 11:55:36 +00:00
2021-01-23 12:09:34 +00:00
2021-05-21 23:48:23 +00:00
2021-04-23 04:55:13 +00:00
2021-03-18 17:32:22 +00:00
2021-05-11 20:16:31 +00:00
2021-03-18 22:25:17 +00:00
2021-01-23 12:09:34 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2021-03-16 03:28:52 +00:00
2021-03-16 03:28:52 +00:00
2021-01-23 12:09:34 +00:00
2020-02-17 10:05:59 +00:00
2020-09-08 16:24:00 +00:00
2021-03-19 20:57:24 +00:00
2020-02-17 10:05:59 +00:00
2021-03-19 20:57:24 +00:00
2021-05-11 20:16:31 +00:00
2021-01-23 12:09:34 +00:00
2021-05-19 20:05:46 +00:00
2008-01-02 13:46:22 -08:00
2020-02-17 10:05:59 +00:00
2020-10-23 12:59:59 +00:00
2021-04-15 08:15:45 +00:00
2021-01-23 12:09:34 +00:00
2021-05-11 20:16:31 +00:00
2021-05-01 02:07:47 +00:00
2021-03-16 03:01:36 +00:00
2021-03-16 03:01:36 +00:00
2021-05-10 23:32:33 +00:00
2021-05-21 10:05:09 +00:00
2021-01-23 12:09:34 +00:00
2020-09-08 16:24:56 +00:00
2021-05-20 08:48:55 +00:00
2021-05-19 21:42:34 +00:00
2021-05-19 21:42:34 +00:00
2021-05-25 21:59:49 +00:00
2021-01-23 12:09:34 +00:00
2021-02-19 16:39:35 +00:00
2021-02-19 16:39:35 +00:00
2021-01-26 10:40:11 +00:00
2021-01-26 10:40:11 +00:00
2021-01-26 10:40:11 +00:00
2021-01-23 12:09:34 +00:00
2020-02-17 10:05:59 +00:00
2021-05-10 20:00:48 +00:00
2021-05-18 19:34:07 +00:00
2021-03-11 04:14:17 +00:00
2020-02-17 10:05:59 +00:00
2020-02-17 10:05:59 +00:00
2021-04-27 02:19:11 +00:00
2020-02-17 10:05:59 +00:00
2020-09-28 02:30:41 +00:00
2020-09-28 02:30:41 +00:00
2021-03-26 18:21:34 +00:00