From af5fa9e744acf6da12f2eab7f44810195c0d3ecd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 May 2021 16:51:24 +0200 Subject: Ban conversion of patterns to values Also improve conversion diagnostic. --- libbuild2/name.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbuild2/name.cxx') diff --git a/libbuild2/name.cxx b/libbuild2/name.cxx index 06bf9b9..6a33a63 100644 --- a/libbuild2/name.cxx +++ b/libbuild2/name.cxx @@ -34,6 +34,8 @@ namespace build2 string to_string (const name& n) { + assert (!n.pattern); + string r; // Note: similar to to_stream() below. -- cgit v1.1