home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


fixing macros

by non4me on 01/05/2008 06:51, 3 messages, last message: 01/06/2008 00:38, 873 views, last view: 05/05/2024 10:37

Can a sauer-dev fix the macros(in tools.h etc) please for including iostream?

would be very nice!

thx :)

   Board Index   

#1: ..

by Drakas on 01/05/2008 10:09

I don't see what needs to be fixed. Perhaps iostream itself.

reply to this message

#2: ..

by graham on 01/05/2008 14:26

Yes, this is a problem I would like to see "fixed" too. Three macros, swap, min and max in tools.h cause compile errors when iostream header is included in a source file that also included tools.h. But it's not just a std headers problem, if I define a function named "swap" in a class, this will cause a compile error too. The macros are replacing function names.

swap must be uppercased; min and max could be uppercased or replaced with template functions.

reply to this message

#3: ..

by graham on 01/06/2008 00:38

Ah nice, it's been fixed in latest cvs. :)

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53865240 visitors requested 71640386 pages
page created in 0.024 seconds using 10 queries
hosted by Boost Digital