diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-05-25 16:13:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-05-25 16:13:22 +0200 |
commit | f6c981e551f174809499163fc45c6fa54b8c5914 (patch) | |
tree | a17451657800c31634d68814b3959a3ece071123 /build/scope.cxx | |
parent | cd4e709ead8a3e97eee0ef7b362240986e18fbd5 (diff) |
Store pointer to map key rather than iterator
Clang's libc++ complains about a map iterator instantiation that has an
incomplete value. At the same time, it appears that references (and thus
pointers) to map elements are also stable.
Diffstat (limited to 'build/scope.cxx')
-rw-r--r-- | build/scope.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/scope.cxx b/build/scope.cxx index 0495011..2b24702 100644 --- a/build/scope.cxx +++ b/build/scope.cxx @@ -88,7 +88,7 @@ namespace build p = &find (k.directory ()); } - s.i_ = er.first; + s.path_ = &er.first->first; s.parent_ = p; s.root_ = root ? &s : (p != nullptr ? p->root_ : nullptr); } |