Skip to content
Snippets Groups Projects

Make ParameterSet store covariance as optional instead of pointer

Merged Paul Gessinger-Befurt requested to merge parameter-cov-optional into master
Files
40
@@ -95,8 +95,7 @@ class Measurement {
@@ -95,8 +95,7 @@ class Measurement {
typename std::enable_if<sizeof...(Tail) + 1 == sizeof...(params),
typename std::enable_if<sizeof...(Tail) + 1 == sizeof...(params),
ParValue_t>::type head,
ParValue_t>::type head,
Tail... values)
Tail... values)
: m_oParameters(std::make_unique<const CovMatrix_t>(std::move(cov)), head,
: m_oParameters(std::move(cov), head, values...),
values...),
m_pSurface(std::move(surface)),
m_pSurface(std::move(surface)),
m_sourceLink(source) {
m_sourceLink(source) {
assert(m_pSurface);
assert(m_pSurface);
Loading