Maciej Sobczak wrote:
> Mateusz Loskot wrote:
>> As this is C99 feature, we will need to wrap it with some #ifdef,
>> I think.
>
> Well, according to TR1 this type is also a C++ feature, although some
> compilers might not have the cstdint file at all, as is the case with
> g++ 4.0.1 on my machine.
>
> I'm surprised that Visual C++ defines it in stddef.h, but we cannot
> change that. And considering the fact that the code does compile on this
> compiler, I'm not sure we should do any wrapping for it.
Yes, you are right.
It does compile even if you do
#include <cstddef>
int main()
{
uintptr_t p = ;
}
As MSDN states [1] this type may be declared in many places :-)
[]1 "STDDEF.H and other include files"
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users