path: root/libbuild2/variable.hxx
diff options
authorBoris Kolpackov <boris@codesynthesis.com>2019-09-30 15:10:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-09-30 15:30:55 +0200
commit16e74b781e0fafeed0312c9fa0fd1ae03cf432ea (patch)
tree606224d576d36b8c081c19122a9b7c63ee6a68a2 /libbuild2/variable.hxx
parent15000dc770e864112aa83035a371117b9ca6e991 (diff)
Allow attributes in if-else, assert directive's conditions
Diffstat (limited to 'libbuild2/variable.hxx')
1 files changed, 2 insertions, 1 deletions
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 <typename T> 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 <typename T> T convert (value&&);