From f6c981e551f174809499163fc45c6fa54b8c5914 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 May 2015 16:13:22 +0200 Subject: 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. --- build/scope.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/scope.cxx') 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); } -- cgit v1.1