[Qt-interest] 'foreach' macro collision

Jake Colman colman at ppllc.com
Thu Nov 18 23:01:24 CET 2010


We are upgrading from Qt3 to Qt4.  The Qt4 'foreach' macro collides with
a our own macro of the same name.  Is there anything I can do, short of
renaming my own 'foreach', to disambiguate the macros?  I'm pretty sure
I'm screwed but maybe there is a C++ feature that I am not aware of that
can help me.

Thanks.

-- 
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: colman at ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008, 2009 & 2010




More information about the Qt-interest-old mailing list