diff options
author | 2016-03-05 14:41:30 +0100 | |
---|---|---|
committer | 2016-03-05 14:41:42 +0100 | |
commit | 4a876eab0eaea8f68e9634976f9aaea53a7cd12f (patch) | |
tree | 2e14ec242e5fca812473c51712d03f36ed11d8d7 /src/lib/util | |
parent | 63fb72684a5f011feb1c35b0829700aa79848495 (diff) |
This works (nw)
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/strformat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h index 51d521fd25b..dc8061ca944 100644 --- a/src/lib/util/strformat.h +++ b/src/lib/util/strformat.h @@ -185,6 +185,21 @@ #include <type_traits> #include <utility> +#if defined(__GNUC__) && ((__GNUC__ == 5 && __GNUC_MINOR__ < 2) || (__GNUC__ == 4 && __GNUC_MINOR__ > 8)) +namespace std +{ +template<class _Container> + inline constexpr auto + cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont)))-> decltype(std::begin(__cont)) + { return std::begin(__cont); } + +template<class _Container> + inline constexpr auto + cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))-> decltype(std::end(__cont)) + { return std::end(__cont); } +} +#endif + namespace util { namespace detail { //************************************************************************** |