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
At the current naming convention , we have a problem with the Range-based for-loop C++0x feature.
Explaination : this feature need a begin() and end() member functions to work but the R0x containers have Begin() and End() functions.
begin()
end()
Begin()
End()
Solutions (or):
template<T>auto begin(T& c) -> decltype(c.Begin());
Example of code that has to work:
#include <string> #include <iostream> #include "container/buffer.h" int main(int argc, char *argv[]) { //test 0 std::cout << "Test 0:" << std::endl; { std::string s0 = "I am a testing string."; for (char &x: s0) { std::cout << x; } std::cout << std::endl; } { R0x::Container::FixedBuffer<22> s0 = "I am a testing string."; for (char &x: s0) { std::cout << x; } std::cout << std::endl; } return 0; }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
At the current naming convention , we have a problem with the Range-based for-loop C++0x feature.
Explaination : this feature need a
begin()
andend()
member functions to work but the R0x containers haveBegin()
andEnd()
functions.Solutions (or):
begin()
andend()
2 exceptionstemplate<T>auto begin(T& c) -> decltype(c.Begin());
)Example of code that has to work:
The text was updated successfully, but these errors were encountered: