stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.02k stars 264 forks source link

Add namespace qualifier to size calls #1044

Closed andrjohns closed 1 year ago

andrjohns commented 1 year ago

@hsbadr

As part of testing compatibility with the c++17 default for rstantools, we identified that the version of stanc3 used in rstan 2.26 is emitting size() rather than stan::math::size(), resulting in compilation errors under c++17.

This PR updates the stanc.js from the stanc3 backport branch with a patch for the handling of size() with a qualifier