Opened 10 years ago

Closed 10 years ago

#169 closed defect (wontfix)

C++ typedef bug

Reported by: chiraag Owned by:
Priority: minor Milestone:
Component: HM Version: HM-3.0
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…

Description

The TypeDef.h file typedefs void to Void.
This is a potential source for future bugs as the C++ standard will not allow using Void in function arguments.

This bug can be seen when trying to compile the HM-2.0-ahg-memory branch with a standards compliant C++ compiler like g++

Change History (6)

comment:1 follow-up: Changed 10 years ago by fbossen

Maybe one should just avoid using function definitions like "Int getData( Void )" and use "Int getData()" instead.

comment:2 in reply to: ↑ 1 Changed 10 years ago by chiraag

Replying to fbossen:

Maybe one should just avoid using function definitions like "Int getData( Void )" and use "Int getData()" instead.

Agreed, that is the local fix that I have applied to my version of the checkout. Marked it here just to point out that it could cause future trouble with the HM 3.0 and the ahg-memory merge that was suggested on the mailing list.

comment:3 Changed 10 years ago by fbossen

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

Does not apply to active development branch

comment:4 Changed 10 years ago by davidf

  • Component set to HM

Updating component after adding WD (Text) tickets

comment:5 Changed 9 years ago by davidf

  • Cc fbossen ksuehring davidf added

comment:6 Changed 9 years ago by davidf

  • Cc jct-vc@… added
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Subscriber, Participant)
  • Frank Bossen(Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Always)