I was recently given a list of possible C++ interview questions by a recruiter for a firm on Wall St. One of the questions was:
How would you generate a compile time error if the sizeof(int) is not equal to 4?
I was thinking along the lines of template specialization or some such thing, but I'm not sure. Any ideas?
Thanks.
-Marc