dthuerck / mapmap_cpu

A high-performance general-purpose MRF MAP solver, heavily exploiting SIMD instructions.
BSD 3-Clause "New" or "Revised" License
102 stars 51 forks source link

fix queue initialization #38

Closed mitjap closed 1 year ago

mitjap commented 1 year ago

This PR fixes queue initialization when using older compilers or if this flag is not properly set. In our case was it 199711L when it should be 201100L. When queue is not initialized it causes undefined behavior resulting in an application crash.

Also comparison should proprably be __cplusplus >= 201100L to include c++11, but this is minor issue.

dthuerck commented 1 year ago

Thanks!