Your sample program compiled without errors (and only had false alarm warnings) for me when I tested with the MinGW port of g++ 3.4.5, MSVC8 and the Comeau online compiler.
Last edited by laserlight; March 11th, 2009 at 03:19 PM.
Reason: insert "only had"
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
sorry about that, my school has restrictions in place for environmental variables(xp), so i got eclipse set up for C++ with Mingw today and i'm just getting used to it. i forgot to save the file. thanks for looking...
hey,
i just wanted to find the size of an overloaded function
What sizeof() gets you is the size in bytes of the variable type. Since f is a pointer, it gets you the number of bytes a pointer consists of.
As MrViggy stated, what do you mean by "size of an overloaded function"? If you mean code size, this is totally outside the realm of ANSI C++. If anything, getting the "size of a function" in terms of code size is OS dependent, where you have to know which OS function(s) to call to get this information.
Bookmarks