Deprecated in C++20 according to https://eel.is/c++draft/expr.ass#6 .
0bench/examples.cpp:16:13: warning: compound assignment with ‘volatile’-qualified left operand is deprecated [-Wvolatile]
1 16 | sum += sin(d);
2 | ~~~~^~~~~~~~~
While C++20 is currently unsupported, I don’t see any downside to a minor fixup to an example benchmark. This will also make a hypothetical C++20 patch smaller.