From 2a0f9e035f673f1ee387924501a31990de37f18d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Apr 2015 12:29:20 +0200 Subject: Implement lib/liba/libso{} target group, shared/static library build --- build/utility | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'build/utility') diff --git a/build/utility b/build/utility index 6584c0a..01ecd95 100644 --- a/build/utility +++ b/build/utility @@ -50,12 +50,12 @@ namespace build public: reverse_range (T& x): x_ (x) {} - auto begin () const -> decltype (this->x_.rbegin ()) + auto begin () -> decltype (this->x_.rbegin ()) { return x_.rbegin (); } - auto end () const -> decltype (this->x_.rend ()) + auto end () -> decltype (this->x_.rend ()) { return x_.rend (); } @@ -68,6 +68,13 @@ namespace build return reverse_range (x); } + template + inline reverse_range + reverse_iterate (const T& x) + { + return reverse_range (x); + } + // Call a function if there is an exception. // -- cgit v1.1