Closed andrjohns closed 2 years ago
@hsbadr I merged before I saw your recommendations sorry! I'll open another PR now
@hsbadr I merged before I saw your recommendations sorry! I'll open another PR now
No worries. I see the same order in the development branch.
#include <stan/io/validate_zero_buf.hpp>
#include <stan/io/validate_dims.hpp>
Does validate_dims.hpp
include or need validate_zero_buf.hpp
?
I also see redundancy in the headers: validate_dims.hpp
includes var_context.hpp
, which is included again in dump.hpp
. It isn't a problem since the headers are guarded, though. This isn't specific to this branch.
Does validate_dims.hpp include or need validate_zero_buf.hpp?
No, the two appear distinct (from what I can tell)
Summary
The
stan
source included inStanHeaders
2.26 does not have an#include
statement for thevalidate_dims
header, causing compile errors in some instances. This PR adds the necessaryUSE_STANC3
conditional includeCopyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: