X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/681f1e885b0f95d7278ad2e7e0f2d157c0048390..a2b065a04a23009d81caab4ce169497b042b352b:/obstat.hpp?ds=sidebyside 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