diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-04-12 12:30:08 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-12 14:09:49 -0400 |
commit | a09520cdd91a87ada081b065c42256bec2be6946 (patch) | |
tree | 71b8f6a0c51a358bca5adf1bd04c3c16228371bd /gdb/c-lang.c | |
parent | 8dddb06c598dd4cbdbd60653c54881912fd839b5 (diff) | |
download | gdb-a09520cdd91a87ada081b065c42256bec2be6946.zip gdb-a09520cdd91a87ada081b065c42256bec2be6946.tar.gz gdb-a09520cdd91a87ada081b065c42256bec2be6946.tar.bz2 |
gdbsupport: use result_of_t instead of result_of in parallel-for.h
When building with -std=c++11, I get:
In file included from /home/smarchi/src/binutils-gdb/gdb/unittests/parallel-for-selftests.c:22: /home/smarchi/src/binutils-gdb/gdb/../gdbsupport/parallel-for.h:134:10: error: ‘result_of_t’ is not a member of ‘std’; did you mean ‘result_of’?
134 | std::result_of_t<RangeFunction (RandomIt, RandomIt)>
| ^~~~~~~~~~~
| result_of
This is because result_of_t has been introduced in C++14. Use the
equivalent result_of<...>::type instead.
result_of and result_of_t have been removed in C++20 though, so I think
we'll need some patches eventually to make the code use invoke_result
instead, depending on the C++ version.
Change-Id: I4817f361c0ebcdd4b32976898fc368bb302b61b9
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions