Avoid unused variable warning in release build.

This commit is contained in:
Atgeirr Flø Rasmussen 2013-05-02 11:26:06 +02:00
parent 42511ad2e3
commit 63aae9a232

View File

@ -174,11 +174,13 @@ namespace AutoDiff
const std::vector<M>& jac)
: val_(val), jac_(jac)
{
#ifndef NDEBUG
const int num_elem = val_.size();
const int num_blocks = jac_.size();
for (int block = 0; block < num_blocks; ++block) {
assert(num_elem == jac_[block].rows());
}
#endif
}
V val_;