From 0fb8bc472aafaacb6bff3b9f6a3af2df1aa8dc8a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 16 Aug 2019 17:57:54 +0300 Subject: Fix uncaught invalid_path exception --- bdep/utility.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bdep/utility.hxx') diff --git a/bdep/utility.hxx b/bdep/utility.hxx index 133896f..7f02b3c 100644 --- a/bdep/utility.hxx +++ b/bdep/utility.hxx @@ -119,6 +119,19 @@ namespace bdep dir_path current_directory (); + // Normalize a directory path. Also make the relative path absolute using + // the current directory. + // + dir_path& + normalize (dir_path&, const char* what); + + inline dir_path + normalize (const dir_path& d, const char* what) + { + dir_path r (d); + return move (normalize (r, what)); + } + // Progress. // extern bool stderr_term; // True if stderr is a terminal. -- cgit v1.1