aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/module.hxx2
-rw-r--r--libbuild2/types.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx
index b2b42e4..f97bc60 100644
--- a/libbuild2/module.hxx
+++ b/libbuild2/module.hxx
@@ -127,7 +127,7 @@ namespace build2
bool first; // True if the boot'ed module must be init'ed first.
module_init_function* init;
shared_ptr<build2::module> module;
- const location loc; // Boot location.
+ location_value loc; // Boot location.
};
struct module_map: std::map<string, module_state>
diff --git a/libbuild2/types.hxx b/libbuild2/types.hxx
index 022a6a4..d20fa22 100644
--- a/libbuild2/types.hxx
+++ b/libbuild2/types.hxx
@@ -313,8 +313,9 @@ namespace build2
// Diagnostics location.
//
- // Note that location maintains a shallow reference to path/path_name. Zero
- // lines or columns are not printed.
+ // Note that location maintains a shallow reference to path/path_name (use
+ // location_value if you need the deep copy semantics). Zero lines or
+ // columns are not printed.
//
class location
{
@@ -356,7 +357,6 @@ namespace build2
location_value ();
- explicit
location_value (const location&);
location_value (location_value&&);