Bug found

Good morning,
I've just created the account.
I am sure that post will be removed. So don't be too rough for me plz. I just want to indicate that there is a bug.
http://www.cplusplus.com/reference/functional/minus/
In "Example" box there is missing " #include <numeric> " include.

Best regards, Marcin Ziajkowski :D
Last edited on
Hi Marcin, what part of the program uses <numeric>?
std::accumulate
Have you reported it using the "Spotted an error? contact us" link at the bottom of the page?
Last edited on
Thanks ne555, I see it was probably a copy-paste error since it says std::transform on the comment in the code.
The funny thing is actually does compile with GCC — probably why the error was missed in the first place.
Topic archived. No new replies allowed.