Opened 9 years ago

Closed 9 years ago

#10749 closed defect (fixed)

watcom 1.8 compiatuion of 2.9.0 (error2)

Reported by: biol75 Owned by:
Priority: normal Milestone: 2.9.0
Component: wxMSW Version: 2.9.0
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

..\..\include\wx\window.h(834): Error! E262: col(23) cannot reduce access to 'ProcessEvent'
..\..\include\wx\window.h(836): Error! E262: col(23) cannot reduce access to 'ProcessThreadEvent'
..\..\include\wx\window.h(838): Error! E262: col(23) cannot reduce access to 'SafelyProcessEvent'
..\..\include\wx\window.h(839): Error! E262: col(23) cannot reduce access to 'ProcessPendingEvents'
..\..\include\wx\window.h(840): Error! E262: col(23) cannot reduce access to 'AddPendingEvent'
..\..\include\wx\window.h(841): Error! E262: col(23) cannot reduce access to 'QueueEvent'

The watcom error guide says: "A derived class cannot change the access of a base class member with an access declaration. The access declaration can only be used to restore access changed by inheritance."

Should the lines like
using wxEvtHandler::ProcessEvent;
be public rather than protected /

chris

Change History (1)

comment:1 Changed 9 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [60478]) don't use access declarations with Watcom which doesn't support them correctly (closes #10749)

Note: See TracTickets for help on using tickets.