p4lang / p4-constraints

Constraints on P4 objects enforced at runtime
Apache License 2.0
14 stars 7 forks source link

Replace undefined std::Container<const T> with std::Container<T> #147

Closed jonathan-dilorenzo closed 1 week ago

jonathan-dilorenzo commented 1 week ago

Replace undefined std::Container with std::Container

std::vector (and other container types: deque/forward_list/list/multiset/queue/set/stack) are undefined and disallowed by libstdc++. Future libc++ will report errors as well. Migrate to std::Container to bring code in-line with the C++ standard and the behavior of other C++ standard libraries. Make similar changes to absl::flat_hash_set.