Skip to content

Commit

Permalink
explicit path to string conversion for Windows
Browse files Browse the repository at this point in the history
Apparently an implicit conversion via `=` does not exist on Windows:

D:\a\Soar\Soar\Core\CLI\src/cli_CommandLineInterface.cpp(93): error C2679: binary '=': no operator found which takes a right-hand operand of type 'std::filesystem::path' (or there is no acceptable conversion)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\xstring(1429): note: could be 'std::basic_string<char,std::char_traits<char>,std::allocator<char>> &std::basic_string<char,std::char_traits<char>,std::allocator<char>>::operator =(const _Elem)'
        with
        [
            _Elem=char
        ]
  • Loading branch information
garfieldnate committed Mar 8, 2025
1 parent ab3fa1e commit d961870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/CLI/src/cli_CommandLineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ EXPORT CommandLineInterface::CommandLineInterface()
m_Parser.AddCommand(new cli::WMCommand(*this));
m_Parser.AddCommand(new cli::SVSCommand(*this));

m_HomeDirectory = std::filesystem::current_path();
m_HomeDirectory = std::filesystem::current_path().string();

Soar_Instance::Get_Soar_Instance().Set_CLI(this);
}
Expand Down

0 comments on commit d961870

Please sign in to comment.