4 Aug
2010
4 Aug
'10
10:33 a.m.
Jasper van de Gronde wrote:
Interesting. I just encountered the opposite, and thus added the const, as that also agrees with Microsoft's documentation. Also, I figured that even if this was different in older versions (I'm using TDM's GCC 4.5) it should be safe to hand it a function that takes a const parameter...
Well, if you want to declare the parameter being const then you should write:
ENHMETARECORD * const lpEMFR
which is a const pointer to a non const ENHMETARECORD object, otherwise:
const ENHMETARECORD* lpEMFR or (which is the same) ENHMETARECORD const * lpEMFR
is a non const pointer to a const ENHMETARECORD object, and you can't pass a const pointer to it (being the ENHMETARECORD object const or not).
Regards. Luca
--
View this message in context: http://old.nabble.com/Problem-compiling-rev.9683-tp29342879p29342886.html
Sent from the Inkscape - Dev mailing list archive at Nabble.com.