freebsd-clang fix (see extended)
Under FreeBSD, and possiblily other clang libcxx based platforms, it seems that you can't just do constexpr std:array ... but instead actually have to specify more like constexpr std:array<QString,3>.portability/clang
parent
f3e48ade3c
commit
87e3fa887e
|
@ -101,13 +101,14 @@ namespace {
|
|||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// for clang on freebsd (and possibly other non-apple llvm sources) it seems we need to specify more.
|
||||
// wave function list(s)
|
||||
const constexpr std::array waveFunc = {
|
||||
const constexpr std::array<double(*)(double,double,double),3> waveFunc = {
|
||||
&oscSaw,
|
||||
&oscSine,
|
||||
&oscPulse,
|
||||
};
|
||||
const std::array waveName = {
|
||||
const std::array<QString,3> waveName = {
|
||||
qs("saw"),
|
||||
qs("sine"),
|
||||
qs("pulse"),
|
||||
|
|
Loading…
Reference in New Issue