Commit b8b21a66 authored by Christian Gumpert's avatar Christian Gumpert
Browse files

fix problem with unique_ptr for example

parent 1fcf1cb8
Pipeline #7240 failed with stage
......@@ -45,7 +45,7 @@ PropertyAlg::PropertyAlg(const std::string& name, ISvcLocator* ploc)
// declare properties of external algorithms
std::function<const double&()> getter = std::bind(&ExternalAlg::getMyProperty, std::ref(m_pExternalAlg));
std::function<void(const double&)> setter = std::bind(&ExternalAlg::setMyProperty, std::ref(m_pExternalAlg), std::placeholders::_1);
m_pExtProp = std::unique_ptr<Property>(declareProperty( "ExternalProperty" , getter, setter, -0.1));
m_pExtProp = declareProperty( "ExternalProperty" , getter, setter, -0.1);
// Declare the algorithm's properties
declareProperty( "Int", m_int = 100);
......
......@@ -51,7 +51,7 @@ private:
/// They are set in the initialization phase by the job options service
std::unique_ptr<ExternalAlg> m_pExternalAlg;
std::unique_ptr<Property> m_pExtProp;
Property* m_pExtProp;
int m_int;
long long m_int64;
unsigned long long m_uint64;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment