Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const int COMPILE_TIME_CONSTANT = 12;
- template<typename T> void unused(T) {}
- int main() {
- char buf[ (unsigned long)((char*)(unsigned long)(sizeof( int[COMPILE_TIME_CONSTANT ] ))) ];
- unsigned long buf_size = sizeof(buf);
- unused(buf_size);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement