Bug found

Apr 9, 2019 at 4:36pm
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 Apr 9, 2019 at 4:36pm
Apr 9, 2019 at 4:52pm
Hi Marcin, what part of the program uses <numeric>?
Apr 9, 2019 at 5:00pm
std::accumulate
Apr 9, 2019 at 5:02pm
Have you reported it using the "Spotted an error? contact us" link at the bottom of the page?
Last edited on Apr 9, 2019 at 5:02pm
Apr 9, 2019 at 5:26pm
Thanks ne555, I see it was probably a copy-paste error since it says std::transform on the comment in the code.
Apr 10, 2019 at 5:58am
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.