CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros

Use default assignment operator because they may be optimized better than the code below:

template <class Base>
inline AD<Base>& AD<Base>::operator=(const AD<Base> &right)
{ value_ = right.value_;
tape_id_ = right.tape_id_;
taddr_ = right.taddr_;
return *this;
}