addWidget(const Widget& nWidget){
Widgets.push_back(nWidget);
i am trying to send an object from a x* by ref in to a vector holding and i get the following error
1 IntelliSense: no instance of overloaded function "std::vector<_Ty, _Alloc>::push_back [with _Ty=Widget *, _Alloc=std::allocator<Widget *>]" matches the argument list
argument types are: (const Widget *)
object type is: std::vector<Widget *, std::allocator<Widget *>>
what am i missing here?