Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Some minor fixes for
RawVector
(#11693)
Summary: The patch addresses a couple of issues with `RawVector` class: 1. Const version of `operator[]` returns `T` by value, which seems to be an unfortunate implementation mistake 2. Added an additional requirement for `T` to be `std::trivially_copyable_v<T>`. It makes little sense to use `raw_vector` for non-trivially copyable T:s, so explicitly forbid it. Pull Request resolved: #11693 Reviewed By: yuandagits Differential Revision: D66683059 Pulled By: xiaoxmeng fbshipit-source-id: e5016a3bce54c4580c52946e8a0f1c8a3e7c828f
- Loading branch information