Lingzhu Xiang 47eac21072 Make fixed-size Matrix and Array trivially copyable after C++20
Making them trivially copyable allows using std::memcpy() without undefined
behaviors.

Only Matrix and Array with trivially copyable DenseStorage are marked as
trivially copyable with an additional type trait.

As described in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0848r3.html
it requires extremely verbose SFINAE to make the special member functions of
fixed-size Matrix and Array trivial, unless C++20 concepts are available to
simplify the selection of trivial special member functions given template
parameters. Therefore only make this feature available to compilers that support
C++20 P0848R3.

Fix #1855.
2022-01-07 19:04:35 +00:00
..
2021-11-24 20:08:49 +00:00
2019-03-14 10:08:12 +01:00
2021-11-24 20:08:49 +00:00
2021-12-21 16:46:09 +00:00
2021-11-24 20:08:49 +00:00
2016-05-18 14:03:03 +02:00
2018-11-23 15:37:09 +01:00
2021-03-15 13:32:24 -07:00
2021-11-24 20:08:49 +00:00
2019-12-11 18:22:57 +00:00
2021-12-21 16:46:09 +00:00
2021-01-27 23:32:12 +01:00
2021-11-24 20:08:49 +00:00
2021-05-07 16:26:57 +00:00
2021-01-27 23:32:12 +01:00
2021-12-21 16:46:09 +00:00
2021-04-22 18:45:19 +00:00
2021-09-15 20:49:43 +00:00
2021-11-24 20:08:49 +00:00
2021-01-21 09:44:42 -08:00
2021-12-06 18:01:15 +00:00
2021-11-24 20:08:49 +00:00
2018-11-23 15:12:06 +01:00
2021-09-23 15:22:00 +00:00