We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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; };
The text was updated successfully, but these errors were encountered:
I'll get to this. Thank you!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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;
};
The text was updated successfully, but these errors were encountered: