Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with using tinystl #1

Closed
attilaz opened this issue Nov 23, 2016 · 2 comments
Closed

problem with using tinystl #1

attilaz opened this issue Nov 23, 2016 · 2 comments

Comments

@attilaz
Copy link

attilaz commented Nov 23, 2016

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
Copy link
Owner

Thanks for the fix, it is now applied

@attilaz
Copy link
Author

attilaz commented Nov 24, 2016

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants