aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-01 13:43:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-01 13:43:37 +0200
commit317cf86dedbd72aacc673c6257cc178e76ee77e3 (patch)
treed3a5a74b6c202abdd94d629b9c0c3b7577e25c38
parent84a68ccf26a50d5a20a6d8542e7d5472531333dc (diff)
Add std::string to common types
-rw-r--r--bpkg/diagnostics4
-rw-r--r--bpkg/types4
2 files changed, 5 insertions, 3 deletions
diff --git a/bpkg/diagnostics b/bpkg/diagnostics
index ef7b24c..d1183d2 100644
--- a/bpkg/diagnostics
+++ b/bpkg/diagnostics
@@ -211,10 +211,10 @@ namespace bpkg
{
public:
location () {}
- location (std::string f, std::uint64_t l, std::uint64_t c)
+ location (string f, std::uint64_t l, std::uint64_t c)
: file (std::move (f)), line (l), column (c) {}
- std::string file;
+ string file;
std::uint64_t line;
std::uint64_t column;
};
diff --git a/bpkg/types b/bpkg/types
index d66f9fb..0394d56 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -15,7 +15,9 @@ namespace bpkg
{
// Commonly-used types.
//
- using strings = std::vector<std::string>;
+ using std::string;
+
+ using strings = std::vector<string>;
using cstrings = std::vector<const char*>;
// <butl/path>