problem with using tinystl
Closed this issue · 2 comments
attilaz commented
This iterator stuff looks useful, thanks.
I was trying to use it with tinystl ( https://github.com/bkaradzic/bx/tree/master/include/tinystl) and ran into an issue:
iterator.h:91:54: Member reference base type 'int *' is not a structure or union
I have replaced:
using ValueRef = decltype(std::declval().operator());
with
using ValueRef = decltype(*std::declval());
And everything seems to work fine now.
dtrebilco commented
Thanks for the fix, it is now applied
attilaz commented
thanks