Skip to content

Commit 9ca70ee

Browse files
authored
Merge pull request #415 from stan-dev/external-fns-includes
Add includes to external function example
2 parents 0e5e174 + df13a9a commit 9ca70ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cmdstan-guide/external_code.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ this program to C++, but the generated C++ code will not compile
4242
unless you write a file
4343
such as `examples/bernoulli/make_odds.hpp` with the following lines
4444
```
45+
#include <boost/math/tools/promotion.hpp>
46+
#include <ostream>
47+
4548
namespace bernoulli_model_namespace {
4649
template <typename T0__> inline typename
4750
boost::math::tools::promote_args<T0__>::type make_odds(const T0__&

0 commit comments

Comments
 (0)