rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

clang errors and warnings #889

Open yurivict opened 5 years ago

yurivict commented 5 years ago

Errors:

In file included from /usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocket.cpp:15:
In file included from /usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocket.h:17:
/usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocketClient.h:44:18: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
  RSocketClient& operator=(RSocketClient&&) = default;
                 ^

Please fix this and other clang warnings:

In file included from /usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/benchmarks/StreamThroughputMemory.cpp:24:
In file included from /usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocket.h:17:
/usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocketClient.h:44:18: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
  RSocketClient& operator=(RSocketClient&&) = default;
                 ^
/usr/ports/net/rsocket-cpp/work/rsocket-cpp-0.10.0-942-g3d878b1e/rsocket/RSocketClient.h:95:44: note: move assignment operator of 'RSocketClient' is implicitly deleted because field 'connectionFactory_' has no move assignment operator
  const std::shared_ptr<ConnectionFactory> connectionFactory_;
                                           ^
1 warning generated.