electro-smith / DaisySP

A Powerful DSP Library in C++
https://www.electro-smith.com/daisy
Other
836 stars 131 forks source link

Adds guard around constexpr function to allow C++11 compatibility #159

Closed stephenhensley closed 3 years ago

stephenhensley commented 3 years ago

fixes #156 - added guard around constexpr to prevent issues with c++11 compatibility.

stephenhensley commented 3 years ago

Tested building a few DaisyExample projects with C++11 and they build as expected now.

Without inline on the C++11 and earlier version a linker error would be thrown for multiple definitions for every file that included dsp.h within the library itself (i.e. for Svf example the svf.o and oscillator.o).