stan-dev / nomad

Fast autodiff.
Other
19 stars 2 forks source link

var_body.hpp: static int n_partials() doesn't have a default return #1

Closed syclik closed 10 years ago

syclik commented 10 years ago

There's no default return for this function.

betanalpha commented 10 years ago

@syclik Was this in an older version? Both var_base and var_body have n_partials implemented.

syclik commented 10 years ago

It was on the master branch. The problem is that there isn't a default return value. One of those functions has every return within an if block. On Jun 27, 2014 5:26 PM, "Michael Betancourt" notifications@github.com wrote:

@syclik https://github.com/syclik Was this in an older version? Both var_base and var_body have n_partials implemented.

— Reply to this email directly or view it on GitHub https://github.com/stan-dev/nomad/issues/1#issuecomment-47402171.

betanalpha commented 10 years ago

Ah, I see what you mean. I misunderstood "default".