I'm trying something like this:
Foo & operator=(Foo & to, const Bar &from);
But I'm getting this error:
E2239 'operator =(Foo &, const Bar &)' must be a member function
Are there limitations on which operators can/cannot be defined as Free Functions, and if so, why?
three
copy control functions(namely copy constructor, operator= and destructor). But why for others? – Chary