Skip to content
Snippets Groups Projects

Replace the raw array in ReservedVector by std::array

Merged Simon Praetorius requested to merge issue/reserved-vector-var-tracking into master

Summary

In ReservedVector the data was stored as raw array. This has 2 problems: first, we cannot allocate a raw array of size 0. This may happen in generic code, second, the raw array with large size may result in a compiler warning

note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without

I'm not exactly sure why, but the change to std::array solved this warning for me.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading