Skip to content

Fix Windows build - add explicit std::filesystem::path conversion to std::string

Pavel Kisliak requested to merge epam/fix_windows_build into main

Type of change

  • Bug Fix
  • Feature

Does this introduce a change in the core logic?

  • [No]

Does this introduce a change in the cloud provider implementation, if so which cloud?

  • AWS
  • Azure
  • GCP
  • IBM

Updates description

Fix build on Windows (by adding explicit conversion std::filesystem::path to std::string in the formatter)

Error C2665 'oes::core::formatArg': none of the 18 overloads could convert all the argument types \open-etp-server\src\lib\oes\core\utils\Format.h 230

The operator that casts std::filesystem::path to string has different string type on different platforms, on Windows it's std::wstring

Merge request reports

Loading