{
mutable std::shared_ptr<ModelAPI_AttributeDouble> myAttribute;
- fill_visitor(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
+ fill_visitor(const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
: myAttribute(theAttribute) {}
void operator()(double theValue) const { myAttribute->setValue(theValue); }
};
void ModelHighAPI_Double::fillAttribute(
- std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const
+ const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const
{
boost::apply_visitor(fill_visitor(theAttribute), myValue);
}