The compiler now complains about the move of a std::atomic, because the default copy/move method is deleted (per the standard).
Clang version:
1188_ which clang
/usr/bin/clang
1189_ clang -v
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Anyone have any assistance on getting this working?
David
In file included from src/cpp/client/channel_cc.cc:36:
In file included from include/grpcpp/impl/codegen/call_op_set.h:39:
In file included from include/grpcpp/impl/codegen/interceptor_common.h:29:
include/grpcpp/impl/codegen/server_interceptor.h:50:3: error: explicitly defaulted move constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
ServerRpcInfo(ServerRpcInfo&&) = default;
^
include/grpcpp/impl/codegen/server_interceptor.h:89:19: note: move constructor of 'ServerRpcInfo' is implicitly deleted because field 'ref_' has a deleted move constructor
std::atomic_int ref_;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:1643:7: note: copy constructor of 'atomic<int>' is implicitly deleted because base class '__atomic_base<int>' has a deleted copy constructor
: public __atomic_base<_Tp>
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:1562:7: note: copy constructor of '__atomic_base<int, true>' is implicitly deleted because base class '__atomic_base<int, false>' has a deleted copy constructor
: public __atomic_base<_Tp, false>
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:1542:5: note: '__atomic_base' has been explicitly marked deleted here
__atomic_base(const __atomic_base&) = delete;
^