clad
clad copied to clipboard
Need to extend support for differentiating Constructors in Clad
The PR #497 adds support for differentiating copy constructors of class ValueAndPushforward
and that too, only the C++ generated default ones. However for other class types and user defined copy constructors, we need to generalize the differentiation of constructors with the help of a constructor pull back function. This generalization will also help to differentiate Move constructors, Default object creation constructors and Parameterised constructors.