pnoltes commented on a change in pull request #293:
URL: https://github.com/apache/celix/pull/293#discussion_r525413649
##########
File path: libs/framework/include/celix/dm/ServiceDependency.h
##########
@@ -219,13 +229,13 @@ namespace celix { namespace dm {
class ServiceDependency : public TypedServiceDependency<T> {
using type = I;
public:
- ServiceDependency(const std::string &name = std::string{}, bool valid
= true);
+ ServiceDependency(celix_dm_component_t* cCmp, const std::string &name,
bool valid = true);
~ServiceDependency() override = default;
ServiceDependency(const ServiceDependency&) = delete;
ServiceDependency& operator=(const ServiceDependency&) = delete;
- ServiceDependency(ServiceDependency&&) noexcept = default;
- ServiceDependency& operator=(ServiceDependency&&) noexcept = default;
+ ServiceDependency(ServiceDependency&&) noexcept = delete;
+ ServiceDependency& operator=(ServiceDependency&&) noexcept = delete;
Review comment:
the base of service dependency has raw pointer, to prevent compiler
issues the move and copy constructions are deleted
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]