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

Use default copy constructor because they may be optimized better than the code below:

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