I stumbled upon a problem with the "Convert to empty()" refactoring option. I have derived my own class from std::deque as follows:
class CMyClass : public deque<CMyStruct>
In a member function of my derived class I have the following code:
if(size() == 0)
return;
VA suggested me "Convert to empty()" on the size function and then produced the following:
if(size->empty())
return;
However, this is wrong and I would have expected the following:
if(empty())
return;
I'm using VAX 2248 with VS2012.
Kind regards,
Marcus