X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/681f1e885b0f95d7278ad2e7e0f2d157c0048390..dddf9581bc6442e82a1a9fb626f6c04c9ca7d07a:/obstat.hpp diff --git a/obstat.hpp b/obstat.hpp index 2824e69..57a3431 100644 --- a/obstat.hpp +++ b/obstat.hpp @@ -87,7 +87,7 @@ template int obstat::computeJack(restype (*func)(vector< vector > *vals, void *para), void *para) { int nmeas=measurements.size(); - restype manymeans[nmeas]; + restype *manymeans = new restype[nmeas]; result jackres; jackres.val = 0; @@ -116,6 +116,8 @@ int obstat::computeJack(restype (*func)(vector< vector::computeJack(void (*preMeasFunc)(vector< vector *preCalculated, vector *excludedmeas, int nmeas, void *para), void *para) { int nmeas=measurements.size(); - restype manymeans[nmeas]; + restype *manymeans = new restype[nmeas]; result jackres; vector preCalculated; @@ -147,6 +149,8 @@ int obstat::computeJack(void (*preMeasFunc)(vector< vector