While STL containers are not guaranteed to build with incomplete types, `rtengine::Cache` used to build with `std::map` as well as `std::unordered_map` when I first implemented it. With GCC 6.3 I recently realized, that this was no longer the case for hashable keys (i.e. `std::unordered_map` as `Store`). The recommended workaround is to use a `std::unique_ptr`.
5.7 KiB
5.7 KiB