Closed sanguinariojoe closed 7 months ago
#include "FFlLib/FFlElementBase.H" cannot be removed or else
#include "FFlLib/FFlElementBase.H"
/home/pepe/CoreMarine/exmar/fedem/fedem-gui/src/vpmApp/vpmAppUAMap/FapUARDBSelector.C:194:52: error: no matching function for call to ‘find(std::vector<std::__cxx11::basic_string<char> >::iterator, std::vector<std::__cxx11::basic_string<char> >::iterator, const std::string&)’ 194 | std::vector<std::string>::iterator it = std::find(allOpers.begin(), allOpers.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 195 | myCurve->getResultOper(myAxis)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/locale_facets.h:48, from /usr/include/c++/13.2.1/bits/basic_ios.h:37, from /usr/include/c++/13.2.1/ios:46, from /usr/include/c++/13.2.1/istream:40, from /usr/include/c++/13.2.1/sstream:40, from /home/pepe/CoreMarine/exmar/fedem/fedem-gui/fedem-mdb/fedem-foundation/src/FFaLib/FFaContainers/FFaField.H:12, from /home/pepe/CoreMarine/exmar/fedem/fedem-gui/fedem-mdb/vpmDB/FmBase.H:21, from /home/pepe/CoreMarine/exmar/fedem/fedem-gui/fedem-mdb/vpmDB/FmModelMemberBase.H:14, from /home/pepe/CoreMarine/exmar/fedem/fedem-gui/fedem-mdb/vpmDB/FmSubAssembly.H:11, from /home/pepe/CoreMarine/exmar/fedem/fedem-gui/src/vpmApp/vpmAppUAMap/FapUARDBSelector.C:17: /usr/include/c++/13.2.1/bits/streambuf_iterator.h:435:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, const _CharT2&)’ 435 | find(istreambuf_iterator<_CharT> __first, | ^~~~ /usr/include/c++/13.2.1/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed: /home/pepe/CoreMarine/exmar/fedem/fedem-gui/src/vpmApp/vpmAppUAMap/FapUARDBSelector.C:194:52: note: ‘__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >’ is not derived from ‘std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >’ 194 | std::vector<std::string>::iterator it = std::find(allOpers.begin(), allOpers.end(), | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 195 | myCurve->getResultOper(myAxis)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/vpmApp/vpmAppUAMap/CMakeFiles/vpmAppUAMap.dir/build.make:440: src/vpmApp/vpmAppUAMap/CMakeFiles/vpmAppUAMap.dir/FapUARDBSelector.C.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2310: src/vpmApp/vpmAppUAMap/CMakeFiles/vpmAppUAMap.dir/all] Error 2
Think just adding #include <algorithm> in the file FapUARDBSelector.Cshould resolve this?
#include <algorithm>
FapUARDBSelector.C
Yes, it definitely does!
P.S. My regression detection is not that smart
#include "FFlLib/FFlElementBase.H"
cannot be removed or else