MarcoFalke
c1604483d3
Merge #20566 : refactor: Use C++17 std::array where possible
...
fac7ab1d5b58fb9cfd80d5cf74ac4d2e5cb8eff2 refactor: Use C++17 std::array where possible (MarcoFalke)
Pull request description:
Using the C++11 std::array with explicit template parameters is problematic because overshooting the size will fill the memory with default constructed types.
For example,
```cpp
#include <array>
#include <iostream>
int main()
{
std::array<int, 3> a{1, 2};
for (const auto& i : a) {
std::cout << i << std::endl; // prints "1 2 0"
}
}
```
ACKs for top commit:
jonasschnelli:
Code Review ACK fac7ab1d5b58fb9cfd80d5cf74ac4d2e5cb8eff2
practicalswift:
cr ACK fac7ab1d5b58fb9cfd80d5cf74ac4d2e5cb8eff2
vasild:
ACK fac7ab1d
promag:
Code review ACK fac7ab1d5b58fb9cfd80d5cf74ac4d2e5cb8eff2.
Tree-SHA512: ef7e872340226e0d6160e6fd66c6ca78b2ef9c245fa0ab27fe4777aac9fba8d5aaa154da3d27b65dec39a6a63d07f1063c3a8ffb667a98ab137756a1a0af2656
2020-12-04 15:18:48 +01:00
..
2020-11-25 14:38:33 +02:00
2020-10-15 11:28:13 +02:00
2020-09-28 12:27:08 -07:00
2020-08-21 12:48:46 +08:00
2020-11-24 10:20:16 -05:00
2020-12-01 18:36:39 +01:00
2020-12-01 15:11:51 +01:00
2020-10-12 12:14:53 -07:00
2020-12-04 08:22:45 +01:00
2020-12-01 18:36:39 +01:00
2020-12-01 18:36:39 +01:00
2020-10-27 23:08:48 -07:00
2020-08-20 17:55:06 +00:00
2020-12-02 20:52:19 +08:00
2020-11-19 15:48:24 +01:00
2020-12-04 11:07:28 +01:00
2020-12-04 08:22:45 +01:00
2020-10-01 00:33:38 +02:00
2020-07-06 03:52:37 +02:00
2020-10-09 14:29:04 +03:00
2020-10-09 14:29:04 +03:00
2020-08-12 09:22:07 +01:00
2020-11-19 16:30:54 +01:00
2020-11-26 09:07:33 +00:00
2020-10-12 15:35:08 -07:00
2020-07-03 20:43:55 -07:00
2020-11-26 09:05:59 +00:00
2020-11-26 09:05:59 +00:00
2020-11-18 12:00:57 -05:00
2020-10-25 16:51:21 +01:00
2020-11-18 12:00:57 -05:00
2020-09-30 20:43:05 +03:30
2020-11-18 12:00:57 -05:00
2020-10-30 13:53:28 +01:00
2020-11-18 12:00:57 -05:00
2020-09-22 22:32:25 +02:00
2020-05-28 09:55:39 +03:00
2020-05-28 09:55:39 +03:00
2020-07-30 13:57:54 -07:00
2020-05-26 17:27:15 -04:00
2020-06-21 06:41:55 -04:00
2020-10-01 22:22:56 -07:00
2020-08-27 20:07:27 -04:00
2020-11-16 10:40:56 +01:00
2020-09-29 10:20:05 +02:00
2020-09-29 09:59:51 +03:00
2020-09-29 09:59:52 +03:00
2020-10-25 14:25:00 +01:00
2020-11-18 12:00:57 -05:00
2020-11-18 12:00:57 -05:00
2020-07-01 14:44:28 -04:00
2020-07-01 14:44:28 -04:00
2020-10-22 21:45:10 +03:00
2020-11-26 09:05:59 +00:00
2020-11-20 05:36:01 +01:00
2020-09-04 10:25:44 +01:00
2020-07-08 14:26:14 +03:00
2020-11-04 12:16:57 -05:00
2020-06-16 15:15:46 -04:00
2020-10-12 02:06:32 -07:00
2020-11-26 09:05:59 +00:00
2020-11-23 21:02:54 +00:00
2020-10-22 21:45:20 +03:00
2020-12-01 10:02:56 +01:00
2020-08-27 14:33:00 -04:00
2020-08-18 18:03:57 +00:00
2020-06-07 17:03:49 +02:00
2020-05-28 09:54:24 +03:00
2020-12-01 09:39:56 +01:00
2020-10-14 11:18:12 -04:00
2020-10-27 19:40:44 +01:00
2020-10-14 11:18:12 -04:00
2020-10-14 11:18:12 -04:00
2020-11-07 07:50:59 +01:00
2020-11-26 14:56:25 -08:00
2020-07-30 13:57:54 -07:00
2020-06-15 08:08:19 -04:00
2020-09-04 09:46:44 -07:00
2020-10-12 12:14:53 -07:00
2020-10-12 12:14:53 -07:00
2020-12-01 18:36:39 +01:00
2020-10-27 11:14:58 -04:00
2020-11-20 15:11:21 +01:00
2020-12-03 14:54:07 +01:00
2020-11-16 15:54:24 -03:00
2020-11-16 07:57:34 +01:00
2020-10-15 19:21:38 +02:00
2020-06-27 11:49:28 -04:00
2020-07-01 18:03:12 -04:00
2020-11-26 09:05:59 +00:00
2020-10-09 16:42:50 +02:00
2020-10-09 16:42:50 +02:00
2020-06-24 16:32:19 -04:00
2020-11-26 09:05:59 +00:00
2020-10-12 17:17:56 -07:00
2020-12-01 18:36:39 +01:00
2020-08-10 21:30:42 +08:00
2020-11-09 21:21:30 +01:00
2020-09-22 17:08:08 +02:00
2020-06-21 06:02:59 -04:00
2020-06-21 06:02:59 -04:00
2020-10-09 10:32:19 +02:00
2020-09-22 22:31:31 +02:00
2020-09-22 22:31:31 +02:00
2020-11-25 15:18:33 +01:00
2020-10-09 16:42:49 +02:00
2020-11-26 14:42:00 +01:00
2020-11-25 17:02:20 +01:00
2020-08-18 10:46:53 +03:00
2020-10-12 19:50:16 -07:00
2020-12-01 18:36:39 +01:00
2020-10-22 21:45:20 +03:00
2020-10-01 19:00:07 +03:00
2020-07-29 07:53:19 +02:00
2020-07-01 14:44:24 -04:00
2020-10-23 14:41:40 +02:00
2020-12-01 18:36:39 +01:00
2020-12-01 18:36:39 +01:00
2020-10-12 12:14:53 -07:00
2020-10-12 11:01:16 -07:00
2020-10-12 11:01:16 -07:00
2020-12-01 18:36:39 +01:00
2020-11-07 07:50:59 +01:00
2020-09-22 11:34:30 -04:00
2020-09-22 11:34:30 -04:00
2020-09-17 22:17:17 +02:00
2020-10-12 17:18:47 -07:00
2020-07-29 16:36:44 +07:00
2020-11-03 14:01:40 +01:00
2020-11-03 14:01:40 +01:00