$NetBSD: patch-src_BmpFile.cc,v 1.1 2013/03/02 17:57:08 joerg Exp $ --- src/BmpFile.cc.orig 2013-03-01 15:07:01.000000000 +0000 +++ src/BmpFile.cc @@ -214,10 +214,10 @@ std::vector B // create reservoir - for every i reservoir[i] contains the sample values that are neighbourss of // the sample value with label i and have a lower label (and have already been found) // This is necessary to use collapsing trees together with bucket sort (without huge increase in memory usage) - std::vector reservoir[svs.size()] ; + std::vector< std::vector > reservoir(svs.size()) ; // neighbours sorted by distance (for the current source sample value) - std::vector neighbours_byd[r + 1] ; + std::vector< std::vector > neighbours_byd(r + 1) ; for (std::vector::const_iterator srcsvit = svs.begin() ; srcsvit != svs.end() ; srcsvit++) { BmpRGBSampleValue* srcsv = (BmpRGBSampleValue*) (*srcsvit) ;