aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-10-09 11:38:29 +0800
committerAaron LI <aly@aaronly.me>2018-10-09 11:38:29 +0800
commitaf032db052faaa99fc0894ba3128c540a46012e5 (patch)
tree55ff1f0967a0d9ebc34337b381fc4a4137216cce
parent949d7bbdfe4992772992a529a913d5ff39caaf01 (diff)
downloadchandra-acis-analysis-af032db052faaa99fc0894ba3128c540a46012e5.tar.bz2
src/projector: Fix warning on uninitialized base class
Credit: https://stackoverflow.com/a/43613363
-rw-r--r--src/projector.hpp4
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();