-
Notifications
You must be signed in to change notification settings - Fork 104
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
Added additional functionality to cvector and exposed public array.h and vector.h. #123
base: master
Are you sure you want to change the base?
Conversation
Can you share the motivation behind this commit? If you want to make them public, you need to provide extensive testing wrt. to standard library API, just like it's done for other types. And add a word about it in the README. |
I think having access to I had to modify the class in order to use vector with an initializer list. Once I did that I noticed that it only had a small subset of the STL function definitions, unlike I'm happy to add some unit tests when I get a little time to do so. Figured I'd push this change up as is to get the discussion started. Do you agree with having |
Note that data and dsize members were renamed to data_ and dsize_ to avoid conflicts with data() functions from std::vector API.
a63dda0
to
29717b4
Compare
Hey @serge-sans-paille, just following up. I added unit tests a couple weeks ago as requested. I am also currently adding Just to add another use case: we're currently porting some code from a more powerful platform with lots of memory to a very small microcontroller. The For some of these replacements, ideally we would want to use Even for |
Hey @adamshapiro0 I've spent much time on frozen recently, sorry for the delay, and thanks for both the hard work and the motivation sharing. I'm fine with the idea of exposing I'm not as fine with the idea of exposing I still value your work, so here is a plan : split that PR in two, one for array + exposing it in the public API, one for vector and keep it in its original namespace. Would you be ok with that? |
Well to be clear, we are using Can you explain what you mean about it not mapping to an existing container? As far as I can tell it works exactly like a The only exceptions to the |
No description provided.