Hi,
I have updated my system to Fedora 26 which comes with g++ 7.1.1 Now
building Celix fails in the C++ DM.
dependency_manager_cxx/include/celix/dm/Component_Impl.h: In member
function ‘celix::dm::Component<T>&
celix::dm::Component<T>::remove(celix::dm::CServiceDependency<T, I>&)’:
/home/erjan/x/c/dependency_manager_cxx/include/celix/dm/Component_Impl.h:140:24:
error: ‘class std::vector<std::shared_ptr<celix::dm::BaseServiceDependency>
>’ has no member named ‘remove’; did you mean ‘resize’?
this->dependencies.remove(dep);
^~~~~~
resize
make[2]: ***
[dependency_manager_cxx/CMakeFiles/dependency_manager_cxx_static.dir/build.make:159:
dependency_manager_cxx/CMakeFiles/dependency_manager_cxx_static.dir/src/dm_activator.cc.o]
Error 1
The this->dependencies is a std::vector.
Before I make changes to work around this problem, does anyone now if
somehow the remove() member function of vector is removed ? which seems
strange to me. (I have googled it but I did not find similar issues)
Typical is that the remove function is not mentioned in references on the
internet (i.e. cplusplus.com)
I also tried it in a separate test program. The remove member function is
unknown.
Regards,
Erjan