ByteYue opened a new pull request, #38539:
URL: https://github.com/apache/doris/pull/38539
## Proposed changes
<!--Describe your changes.-->
When compiling BE using clang version 18.1, it will fail at
`default_executor()->Submit([t = std::move(task), idx = i]() mutable {
(*t)(idx); });`;
```
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2:
error: 'result_of<(lambda at
/mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:36) &()>'
is deprecated: use 'std::invoke_result' instead
[-Werror,-Wdeprecated-declarations]
552 | using _Res_type_impl
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2:
note: in instantiation of template type alias '_Res_type_impl' requested here
556 | using _Res_type = _Res_type_impl<_Functor, _CallArgs,
_Bound_args...>;
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28:
note: in instantiation of template type alias '_Res_type' requested here
586 | typename _Result = _Res_type<tuple<_Args...>>>
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5:
note: in instantiation of template class 'std::_Bind<(lambda at
/mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:36) ()>'
requested here
881 | bind(_Func&& __f, _BoundArgs&&... __args)
| ^
/mnt/disk1/yuejing/projects/doris/thirdparty/installed/include/aws/core/utils/threading/Executor.h:41:58:
note: in instantiation of function template specialization 'std::bind<(lambda
at /mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:36)>'
requested here
41 | std::function<void()> callable{
std::bind(std::forward<Fn>(fn), std::forward<Args>(args)...) };
| ^
/mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:29:
note: in instantiation of function template specialization
'Aws::Utils::Threading::Executor::Submit<(lambda at
/mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:36)>'
requested here
390 | default_executor()->Submit([t = std::move(task), idx = i]()
mutable { (*t)(idx); });
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9:
note: 'result_of<(lambda at
/mnt/disk1/yuejing/projects/doris/be/src/io/fs/s3_file_system.cpp:390:36) &()>'
has been explicitly marked deprecated here
2590 | { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45:
note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT)
_GLIBCXX_DEPRECATED_SUGGEST(ALT)
| ^
/mnt/disk1/yuejing/projects/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19:
note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
98 | __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
| ^
1 error generated.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]