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

to compile example streaming.cpp error under vs2022 #33

Closed
zack-luan opened this issue Aug 25, 2023 · 1 comment · Fixed by #34
Closed

to compile example streaming.cpp error under vs2022 #33

zack-luan opened this issue Aug 25, 2023 · 1 comment · Fixed by #34

Comments

@zack-luan
Copy link

The following code encountered an error while compiling streaming.cpp under VS2022:

template
struct std::iterator_traits<msd::blocking_iterator> {
using value_type = typename msd::blocking_iterator::value_type;
using iterator_category = std::output_iterator_tag;
};

The error message is as follows:
C2794 “reference”: not “std::iterator_traits<_Iter>” ....

following improvements be made?

template
struct std::iterator_traits<Yuanling::ThreadSafeChannelIterator> {
using value_type = typename Yuanling::ThreadSafeChannelIterator::ValueType;
using iterator_category = std::output_iterator_tag;
using reference = std::reference_wrapper;
};

@andreiavrammsd
Copy link
Owner

I'll get to this. Thank you!

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

Successfully merging a pull request may close this issue.

2 participants