Compiler error in generated C++ code when targeting certain platforms
Hi,
I'm trying to compile the generated C++ code for a CMajor patch to run on a Daisy Seed, but hitting a compile error when it tries to call the max intrinsic in the code generated from std::smoothing::SmoothedValue::setTarget:
It appears on this platform int32_t is a long not an int. Is this something that could reasonably be accomodated for in the generated code? Potentially wrapping int32 constants like int32_t {1}? It appears something similiar is already in place for int64.
Thanks.
Thanks for the feedback. I'll look to see what can be done about this.,
I've gone with this suggestion. I had a look at a different option, to actually use specialisations but I think this is a better compromise. Let me know if it resolves your problem. A build hasn't been released, but it is an update to the source code for the c++ generator
I've gone with this suggestion. I had a look at a different option, to actually use specialisations but I think this is a better compromise. Let me know if it resolves your problem. A build hasn't been released, but it is an update to the source code for the c++ generator
Thanks @cesaref, just tried that out and it works great! Much appreciated.