clad icon indicating copy to clipboard operation
clad copied to clipboard

Need to extend support for differentiating Constructors in Clad

Open Nirhar opened this issue 2 years ago • 2 comments

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.

Nirhar avatar Sep 24 '22 18:09 Nirhar