Since 4/2/2012 5:11:14 AM, michael782 has written 2 articles and participated in 9 conversations. michael782 signature: michael782
michael782's articles:
Items(2) /1
Variadic Macros2298 (3/6/2004 12:08:41 AM) comp.lang.c++.moderated Trying to find information on variadic macros. Can you get specific parameters? #define Test(...) printf("%s", ##__VAR_ARGS__) I can't do this to get the first parameter #define Test(...) printf("%s", var_a... Michael
template question2135 (11/28/2003 11:41:23 PM) comp.lang.c++.moderated Here is the code: template void functionTemplate(Source arg){} template class ClassTemplate { public: ClassTemplate(Source s){} }; int main(int argc, char* argv[]) { int i = 5; functionTemplate(i); ClassTem... Michael
michael782's replies:
Items(7) /1
NULL macro vs. 0 as null pointer?6933 (7/23/2004 3:34:44 PM) comp.lang.c++ Hi all. When referring to a null pointer constant in C++, is there any reason to prefer using 0 over a macro called NULL that is defined to be 0? Thanks! Ken ... kk_oop(242)
smarter enums2738 (7/11/2004 11:25:59 PM) comp.lang.c++ i have been toying with the idea of making my enums smarter - ie, more in line with the rest of the language. i haven't tested it yet, but what i came up with is a template like this: template class smart_... x_gibbsmark1(10)
how C++ calculate the size of an object?926 (6/8/2004 8:37:38 PM) comp.lang.c++ Hi all, If I have the following: class Foo{ void something(void){;} }; and then later I say: Foo f; cout<<sizeof f<<endl; It tells me the size of f is 1 byte. I wonder how does C++ know the size of f is... pembed2003(67)
inline virtual functions.1527 (5/21/2004 3:22:05 AM) comp.lang.c++ Yo, I had a job interview today, the interviewing asked me about inline virtual functions, or what was my opinion on them. Hm, I've seen mention of these babies in the reference material, but I've never used o... datownsend(189)
c++ Final class ?922 (5/19/2004 9:33:40 PM) comp.lang.c++ I know I have seen some threads on the subject long time ago and it was using a virtual base class ... in short, what is the nicest way to implement the Java final class in c++ Thanks. ... basixsolutions
creating an int from bits1923 (5/8/2004 4:58:32 AM) comp.lang.c++ Hi, I am going to have a series of bit flags which I could store in an array, or as a string ("10011001"), or any other way. I want to be able to turn this series of bits into an int. I know C++ must have so... hello(209)