Skip to content
Snippets Groups Projects
Commit c0ccf21a authored by Ian Bell's avatar Ian Bell
Browse files

Numbers don't need to get eval-ed

parent 9629055b
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ template<typename T>
auto forceeval(T&& expr)
{
using namespace autodiff::detail;
if constexpr (isDual<T> || isExpr<T> || isNumber<T>) {
if constexpr (isDual<T> || isExpr<T>) {
return eval(expr);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment