My project uses GCC and has -Werror and -Wold-style-cast compiler options set to catch bad pointer casting practices. While the lines I've changed aren't necessarily bad usage of the old style cast, the are collateral damage in the war against bugs. I'm only using dragonbox.h in my project so other files haven't been changed.
Looks good, thanks. The only problem is that now the code style is a bit inconsistent, but I think I will at some point overhaul cast and literal constant usages so it should be no problem.
My project uses GCC and has -Werror and -Wold-style-cast compiler options set to catch bad pointer casting practices. While the lines I've changed aren't necessarily bad usage of the old style cast, the are collateral damage in the war against bugs. I'm only using dragonbox.h in my project so other files haven't been changed.
Thanks for a great library.