diff options
| author | Aaron LI <aly@aaronly.me> | 2018-10-09 11:38:29 +0800 | 
|---|---|---|
| committer | Aaron LI <aly@aaronly.me> | 2018-10-09 11:38:29 +0800 | 
| commit | af032db052faaa99fc0894ba3128c540a46012e5 (patch) | |
| tree | 55ff1f0967a0d9ebc34337b381fc4a4137216cce /src | |
| parent | 949d7bbdfe4992772992a529a913d5ff39caaf01 (diff) | |
| download | chandra-acis-analysis-af032db052faaa99fc0894ba3128c540a46012e5.tar.bz2 | |
src/projector: Fix warning on uninitialized base class
Credit: https://stackoverflow.com/a/43613363
Diffstat (limited to 'src')
| -rw-r--r-- | src/projector.hpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/projector.hpp b/src/projector.hpp index 4ef4b32..ae7526b 100644 --- a/src/projector.hpp +++ b/src/projector.hpp @@ -36,8 +36,9 @@ namespace opt_utilities      {}      //copy cstr      projector(const projector& rhs) -      :cm_per_pixel(rhs.cm_per_pixel) +      :model<std::vector<T>,std::vector<T>,std::vector<T> >(rhs)      { +      cm_per_pixel=rhs.cm_per_pixel;        attach_model(*(rhs.pmodel));        if(rhs.pcfunc)          { @@ -51,7 +52,6 @@ namespace opt_utilities      //assign operator      projector& operator=(const projector& rhs)      { -      cm_per_pixel=rhs.cm_per_pixel;        if(pmodel)          {            pmodel->destroy();  | 
