utils: small tweaks

This commit is contained in:
Dirk-Jan C. Binnema
2023-08-26 18:40:55 +03:00
parent c4a141975e
commit e1308a9b40
3 changed files with 14 additions and 2 deletions

View File

@ -130,12 +130,17 @@ struct TempDir {
*
* @return the path.
*/
const std::string& path() {return path_; }
const std::string& path() const { return path_; }
private:
std::string path_;
const bool autodelete_;
};
static inline auto format_as(const TempDir& td) {
return td.path();
}
/**
* Temporary (RAII) timezone
*/