Before i get marked as duplicate, all similar questions i could find have answers prior to the introduction of std::filesystem, and either use platform-specific code or Boost::filesystem. I'm looking for a portable answer that uses std::filesystem.
Is it possible to get the path where a c++ executable is located (not the working directory) using std::filesystem? If it is, how?