-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ranged for loops work with STACK_OF(T).
My original plan here was to make STACK_OF(T) expand to a template so the inner type were extractable. Unfortunately, we cannot sanely make STACK_OF(T) expand to a different type in C and C++ even across compilation units because UBSan sometimes explodes. This is nuts, but so it goes. Instead, use StackTraits to extract the STACK_OF(T) parameters and define an iterator type. Bug: 189 Change-Id: I64f5173b34b723ec471f7a355ff46b04f161386a Reviewed-on: https://boringssl-review.googlesource.com/18467 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com>
- Loading branch information
Showing
2 changed files
with
70 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters