microsoft / STL

MSVC's implementation of the C++ Standard Library.
Other
9.89k stars 1.45k forks source link

Use `BENCHMARK` macro for template benchmarks #4662

Closed AlexGuteniev closed 1 month ago

AlexGuteniev commented 1 month ago

See https://google.github.io/benchmark/user_guide.html#templated-benchmarks

C++11 or newer, you can use the BENCHMARK macro with template parameters:

Related issue #4592

StephanTLavavej commented 1 month ago

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

StephanTLavavej commented 1 month ago

Thanks for noticing and fixing this inconsistency! :eagle: :eye: :magic_wand: