martinus / nanobench

Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
https://nanobench.ankerl.com
MIT License
1.43k stars 82 forks source link

Remove redundant pairs of parentheses #94

Closed mxmlkzdh closed 1 year ago

mxmlkzdh commented 1 year ago

Redundant pairs of parentheses could be misleading, and should be removed.

Thank you!

martinus commented 1 year ago

The parentheses are actually here for a reason, on Windows when you include Windows.h it will define macros max and min by default, and then you'd get a compile error unless you use the parentheses

mxmlkzdh commented 1 year ago

Oh very interesting. Today I learned!

Thank you so much.