C++ Logo

std-proposals

Advanced search

[std-proposals] D2854 Proposal of std::filesystem::program_path() LIVE LINK

From: Andrew Tomazos <andrewtomazos_at_[hidden]>
Date: Thu, 27 Apr 2023 23:18:21 +1000
Please find below a live link to a short proposal:

   *D2854 Proposal of std::filesystem::program_path()*

https://docs.google.com/document/d/1YzHFwGEEvbeohua7aLLysfCSOHevGi_N5Stv-z--GpA

> We propose adding the following two functions to std::filesystem:

> namespace std::filesystem {

> path program_path();

> path program_path(error_code& ec);

> }

> They return a std::filesystem::path to the currently running program.

Feedback appreciated. -Andrew

Received on 2023-04-27 13:18:33