GCC 14.1.1 ::replace not declared
/home/rnou/gekkofs/src/daemon/backend/data/chunk_storage.cpp: In static member function ‘static std::string gkfs::data::ChunkStorage::get_chunks_dir(const std::string&)’:
/home/rnou/gekkofs/src/daemon/backend/data/chunk_storage.cpp:77:7: error: ‘::replace’ has not been declared; did you mean ‘std::filesystem::perm_options::replace’?
77 | ::replace(chunk_dir.begin(), chunk_dir.end(), '/', ':');
| ^~~~~~~
| std::filesystem::perm_options::replace
En el fichero incluido desde /usr/include/c++/14.1.1/filesystem:51,
desde /home/rnou/gekkofs/src/daemon/backend/data/chunk_storage.cpp:40:
/usr/include/c++/14.1.1/bits/fs_fwd.h:218:7: nota: ‘std::filesystem::perm_options::replace’ declared here
218 | replace = 0x1,
| ^~~~~~~
[12/89] Building CXX object tests/unit/CMakeFiles/catch2_main.dir/catch_main.cpp.o
Solved including algorithm