ericgjackson / slumbot2019

Implementations of CFR for solving a variety of Holdem-like poker games
MIT License
133 stars 31 forks source link

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

Open StephaneLh opened 3 years ago

StephaneLh commented 3 years ago

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!

ericgjackson commented 3 years ago

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