libstdc++: Fix errors from Library Fundamentals TS headers in C++11 [PR 98319]
Currently the <experimental/random>, <experimental/source_location> and <experimental/utility> headers can be included in C++98 and C++11 modes, but gives errors. With this change they can be included, but define nothing. libstdc++-v3/ChangeLog: PR libstdc++/98319 * include/experimental/random: Only define contents for C++14 and later. * include/experimental/source_location: Likewise. * include/experimental/utility: Likewise. * testsuite/experimental/feat-lib-fund.cc: Include all LFTS headers that are present. Allow test to run for all modes.
Showing
- libstdc++-v3/include/experimental/random 3 additions, 1 deletionlibstdc++-v3/include/experimental/random
- libstdc++-v3/include/experimental/source_location 3 additions, 1 deletionlibstdc++-v3/include/experimental/source_location
- libstdc++-v3/include/experimental/utility 3 additions, 1 deletionlibstdc++-v3/include/experimental/utility
- libstdc++-v3/testsuite/experimental/feat-lib-fund.cc 36 additions, 57 deletionslibstdc++-v3/testsuite/experimental/feat-lib-fund.cc
Loading
Please register or sign in to comment