libstdc++: Minor header cleanup in <numeric>
authorJonathan Wakely <jwakely@redhat.com>
Mon, 5 Oct 2020 21:45:27 +0000 (22:45 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 5 Oct 2020 21:46:46 +0000 (22:46 +0100)
commit1c72f460e9e4fce1220e426989226dfeb0db816e
tree7591372ecfb33588126986cb9a475bd418c91dcb
parentea6da7f50fe2adc3a09fc10a3f437902c40ebff9
libstdc++: Minor header cleanup in <numeric>

When adding new features to <numeric> I included the required headers
adjacent to the new code. This cleans it up by moving all the includes
to the start of the file.

libstdc++-v3/ChangeLog:

* include/std/numeric: Move all #include directives to the top
of the header.
* testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
numbers.
* testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
libstdc++-v3/include/std/numeric
libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc
libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc