C++20 has basic_string::starts_with and basic_string::ends_with but I would rather stick with C++11 for now.
This seems to be a compiler bug which I can't reproduce. I agree that this code could be strengthened so I have committed a fix which avoids the casual use of string::npos and includes length checks: //starts with "loo_" return stat.length() >= 4 && stat.compare(0, 4, "loo_") == 0; and //ends with "_total" return stat.length() >= 6 && stat.compare(stat.length() - 6, 6, "_total") == 0;
Fix for ticket 66
Thanks Yu-Sung. I am currently unable to reproduce the bug. Can you please described the compilation options you used?
Adding elliptical slice sampler from Marcel Jonker
Fix delayed rejection bug. Thanks to Marcel Jonker.
Drop autoconf prerequisite to 2.71 for Ubuntu 24.04
Fix delayed rejection bug. Thanks to Marcel Jonker.