morinim / vita

Vita - Genetic Programming Framework
Mozilla Public License 2.0
35 stars 6 forks source link

[Fix] Fixes Windows compilation issue when casting filepaths to strings #27

Closed DaemonIB closed 4 years ago

DaemonIB commented 4 years ago

Fixes a small bug that occurs when attempting to compile the "tests" project on Windows.

Errors

vita\src\kernel/evolution_strategy.tcc(136,1): error C2664: 'std::string vita::merge_path(const std::string &,const std::string &,char)': cannot convert argument 1 from 'const std::filesystem::path' to 'const std::string &'
vita\src\kernel/evolution_strategy.tcc(136,1): message : Reason: cannot convert from 'const std::filesystem::path' to 'const std::string'
vita\src\kernel/evolution_strategy.tcc(136,48): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
vita\src\utility/utility.h(31,13): message : see declaration of 'vita::merge_path'

vita\src\kernel/search.tcc(440,27): error C2664: 'std::string vita::merge_path(const std::string &,const std::string &,char)': cannot convert argument 1 from 'std::filesystem::path' to 'const std::string &'
vita\src\kernel/search.tcc(441,1): message : Reason: cannot convert from 'std::filesystem::path' to 'const std::string'
vita\src\kernel/search.tcc(440,52): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
vita\src\utility/utility.h(31,13): message : see declaration of 'vita::merge_path'