FluidDataSet: point args in add and update are now const#311
Conversation
Co-authored-by: Owen Green <gungwho@gmail.com>
Co-authored-by: Owen Green <gungwho@gmail.com>
|
I've committed both of your suggestions - I don't completely understand the subtleties but I trust you. I'll run the UTs on them all the same before pinging back here |
|
ok it all passes uts so i'd merge |
|
The subtleties are just to do with const semantics and pointers, and the difference between pointing to const and the pointer itself being const (https://isocpp.org/wiki/faq/const-correctness#const-ptr-vs-ptr-const). So here, |
|
thanks for the explanation. The templating understanding of yours truly is still fragile... |
…ma#311) * FluidDataSet: `point` args in `add` and `update` are now const * Update include/flucoma/data/FluidDataSet.hpp Co-authored-by: Owen Green <gungwho@gmail.com> * Update include/flucoma/data/FluidDataSet.hpp Co-authored-by: Owen Green <gungwho@gmail.com> --------- Co-authored-by: Owen Green <gungwho@gmail.com>
road tested on all UTs, fixes #80