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
Rachel Fae Fox (foxiepaws) 2019-07-22 11:40:42 -04:00
parent f3e48ade3c
commit 87e3fa887e
1 changed files with 3 additions and 2 deletions

View File

@ -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"),