I am using C++ in Visual Studio 2010. Has anyone found a macro or utility to move a member function defined in a header file into the implementation file?
For example,
virtual void SetName(const std::wstring& name) { m_name = name; }
would be converted to
virtual void SetName(const std::wstring& name);
in the header and
void ClassName::SetName(const std::wstring& name)
{
m_name = name;
}
in the cpp file
视觉辅助 - 重构(VA X) -将实现移动到源文件
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.