Skip to content

Commit

Permalink
Add copy constructor to MultiShapeletFunction.
Browse files Browse the repository at this point in the history
A compiler-generated copy constructor was already available
in C++, but this makes it available in Python as well.
  • Loading branch information
TallJimbo committed Apr 15, 2016
1 parent 5767c42 commit f80a79e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/lsst/shapelet/MultiShapeletFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class MultiShapeletFunction {

MultiShapeletFunction() : _components() {}

MultiShapeletFunction(MultiShapeletFunction const & other) = default;

explicit MultiShapeletFunction(ComponentList const & components) : _components(components) {}

explicit MultiShapeletFunction(ShapeletFunction const & component) : _components(1, component) {}
Expand Down

0 comments on commit f80a79e

Please sign in to comment.