From 16e74b781e0fafeed0312c9fa0fd1ae03cf432ea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Sep 2019 15:10:24 +0200 Subject: Allow attributes in if-else, assert directive's conditions --- libbuild2/variable.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbuild2/variable.hxx') diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 3eed61e..3cb3d7f 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -621,7 +621,8 @@ namespace build2 //template T convert (names&&); (declaration causes ambiguity) // Convert value to T. If value is already of type T, then simply cast it. - // Otherwise call convert(names) above. + // Otherwise call convert(names) above. If value is NULL, then throw + // invalid_argument (with an appropriate message). // template T convert (value&&); -- cgit v1.1