diff options
author | John Hodge <tpg@ucc.asn.au> | 2016-06-09 15:19:15 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2016-06-09 15:19:15 +0800 |
commit | dbcc52b7a61f16893353572d4b9234967c33a39b (patch) | |
tree | ec40be8c89729af3a2f58952b50f494e9271f4af /src/common.hpp | |
parent | 07e785ffa329ef1a6f9c879546648b130fc45b29 (diff) | |
download | mrust-dbcc52b7a61f16893353572d4b9234967c33a39b.tar.gz |
common.hpp - Hack around old stl
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common.hpp b/src/common.hpp index bb3ef72e..6dfcd495 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -214,10 +214,12 @@ template <typename T> struct reversion_wrapper { T& iterable; }; template <typename T> -auto begin (reversion_wrapper<T> w) { return ::std::rbegin(w.iterable); } +//auto begin (reversion_wrapper<T> w) { return ::std::rbegin(w.iterable); } +auto begin (reversion_wrapper<T> w) { return w.iterable.rbegin(); } template <typename T> -auto end (reversion_wrapper<T> w) { return ::std::rend(w.iterable); } +//auto end (reversion_wrapper<T> w) { return ::std::rend(w.iterable); } +auto end (reversion_wrapper<T> w) { return w.iterable.rend(); } template <typename T> reversion_wrapper<T> reverse (T&& iterable) { return { iterable }; } |