Skip to content
  • /home/me/projets/MPI/modelisation-mpi/tests/test_divers.cpp: In function ‘int main(int, char**)’:
    /home/me/projets/MPI/modelisation-mpi/tests/test_divers.cpp:40:76: error: invalid initialization of reference of type ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’} from expression of type ‘boost::filesystem::path’
       40 |     LOG_INFO((int) 0, __FUNCTION__, __LINE__, "read file " + p1 + " dans " + (p.parent_path()));
          |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
    /home/me/projets/MPI/modelisation-mpi/tests/test_divers.cpp:26:90: note: in passing argument 4 of ‘void LOG_INFO(int, const char*, int, const string&)’
       26 | inline void LOG_INFO(const int mpi_rank, const char *func, const int line, const string& str) {
          |                                                                            ~~~~~~~~~~~~~~^~~
    ninja: build stopped: subcommand failed.
    Edited by henry
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment