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
From what I can see realtime object does not work with class templates. This does not compile:
template<typename FloatType> class Test { public: Test() { farbot::RealtimeObject<std::vector<FloatType>, farbot::RealtimeObjectOptions::nonRealtimeMutatable> obj; farbot::RealtimeObject<std::vector<FloatType>, farbot::RealtimeObjectOptions::nonRealtimeMutatable>::ScopedAccess<farbot::ThreadType::nonRealtime> t(obj); t->push_back(6.0); } };
Why is this?
The text was updated successfully, but these errors were encountered:
Check out this other issue, which describes how to use 'typename' and 'template' keywords. So in your case it should be
typename farbot::RealtimeObject<std::vector<FloatType>, farbot::RealtimeObjectOptions::nonRealtimeMutatable>::template ScopedAccess<farbot::ThreadType::nonRealtime> t(obj);
#2 (comment)
Sorry, something went wrong.
Thanks!
No branches or pull requests
From what I can see realtime object does not work with class templates. This does not compile:
Why is this?
The text was updated successfully, but these errors were encountered: