diff --git a/core/tests/G3TimestreamMapTest.cxx b/core/tests/G3TimestreamMapTest.cxx index b1e73f40..35b6cbb5 100644 --- a/core/tests/G3TimestreamMapTest.cxx +++ b/core/tests/G3TimestreamMapTest.cxx @@ -66,7 +66,7 @@ void testMakeCompactExisting(){ std::vector keys={"a","b","c","d"}; G3Time t1(0), t2(3); const std::size_t nSamples=4; - std::shared_ptr data=std::make_shared(keys.size()*nSamples); + auto data=std::shared_ptr(new SampleType[keys.size()*nSamples]); //construct a recognizable data pattern for(std::size_t i=0; i