From ba1fb800d20e7757cd8523a0793f63cff137c7cf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 May 2020 10:20:02 +0200 Subject: Use location_value in module_state --- libbuild2/module.hxx | 2 +- libbuild2/types.hxx | 6 +++--- 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 module; - const location loc; // Boot location. + location_value loc; // Boot location. }; struct module_map: std::map 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&&); -- cgit v1.1