Commit fb372b13 authored by Dominik Charousset's avatar Dominik Charousset

don't use std::begin/std::end in memory interface

the use of std::begin/std::end has reported to cause ambiguity errors
on some compilers
parent 86db68ad
......@@ -105,9 +105,9 @@ class basic_memory_cache : public memory_cache {
typedef wrapper* iterator;
iterator begin() { return std::begin(data); }
iterator begin() { return data; }
iterator end() { return std::end(data); }
iterator end() { return begin() + (s_alloc_size / sizeof(T)); }
private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment