I've tried to integrate EASTL into my application and noticed strange compiler output that it can't instantiate non const member function of template<typename T> struct sequential_container_base_dynamic.
After some research I've managed to understand that problem caused by the fact that EASTL uses just T* (pointer) as an iterator type rather a class which wraps pointer on type (STD uses this wrapper).
So in this case compiler produces the same output for const and non const version of get_data() functions.
So, right now the declaration of them looks like this:
I've tried to integrate EASTL into my application and noticed strange compiler output that it can't instantiate non const member function of
template<typename T> struct sequential_container_base_dynamic
. After some research I've managed to understand that problem caused by the fact that EASTL uses justT*
(pointer) as an iterator type rather a class which wraps pointer on type (STD uses this wrapper). So in this case compiler produces the same output for const and non const version ofget_data()
functions. So, right now the declaration of them looks like this:but should be like this
Notice that I've removed
const
indentifier for non-const version of get_data. Fixes should be applied for two template structures: