commit | 7149dfe819b16c0238fb67f55a47e9295c20ff1b | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Wed Mar 20 13:24:33 2024 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Tue Jun 04 10:13:17 2024 -0600 |
tree | 3d6e0285ec95cfd5ca444fb077deb6d17ac884ca | |
parent | 56fefe83f7e607842fa95f6bb7d71f1645ce6c15 [diff] |
Make bcache more type-safe The bcache uses memcpy to make copies of the data passed to it. In C++, this is only safe for trivially-copyable types. This patch changes bcache to require this property, and slightly changes the API to make it easier to use when copying a single object. It also makes the new 'insert' template methods return the correct type.