Здравствуйте, vitaly.grechko, Вы писали:
VG>htmlayout_controls.hpp(46) : warning C4265: 'htmlayout::selected_cb' : class has virtual functions, but destructor is not virtual
VG> instances of this class may not be destructed correctly
VG>Это поправится или прагмой задавить? Вообще я всегда в интерфесайх ставлю виртуальный деструктор с тех пор как отсутствие один раз привело к трапу. Если кто-то удивился, то поставьте у себя в cl.exe флажок -wall много всего интересного почитаете
Не все так просто. Пришлось делать так:
class callback
{
public:
/**Is called for every element that match criteria specified when calling to #htmlayout::dom::element::select() function.*/
virtual bool on_element(HELEMENT he) = 0; /* return false to continue enumeration*/
#if !defined(_MSC_VER) || _MSC_VER > 1200
virtual ~callback() {} // this line causing internal compiler error in VC6
#endif
};