12345678
class A { .............. .............. private; std::shared_ptr<Line> l1; std::shared_ptr<Line> l2; };
123456
void A::connect(Line *l) { ............. ............. l1 = l; // GETTING ERROR HERE }
123
/home/sajjad/Documents/Wematter/CoversionModuleUpdated/WematterCoversion/Slice_Line.cpp:425: error: no match for 'operator=' (operand types are 'std::shared_ptr<conversionmodule::Slice::Line>' and 'conversionmodule::Slice::Line*') l1 = l; ^