slumbot2019 icon indicating copy to clipboard operation
slumbot2019 copied to clipboard

src/vcfr_state.cpp:27:22: error: no matching constructor for initialization of 'shared_ptr<int []>'

Open StephaneLh opened this issue 5 years ago • 1 comments

Hi Eric,

I am trying to compile your code but get stuck when compiling vcfr_state.cpp:

gcc -std=c++17 -Wall -O3 -march=native -ffast-math -flto -c -o obj/vcfr_state.o src/vcfr_state.cpp

src/vcfr_state.cpp:27:22: error: no matching constructor for initialization of
      'shared_ptr<int []>'
  shared_ptr<int []> street_buckets(new int[num]);

Is there a simple way to fix this?

Thanks!

StephaneLh avatar Oct 15 '20 22:10 StephaneLh

I think this may be a gcc version issue. According to my notes, gcc 7.3 is known to work.

ericgjackson avatar Oct 18 '20 23:10 ericgjackson