daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static const int COMPILE_TIME_CONSTANT = 12;
  2.  
  3. template<typename T> void unused(T) {}
  4.  
  5. int main() {
  6.  
  7.     char buf[ (unsigned long)((char*)(unsigned long)(sizeof( int[COMPILE_TIME_CONSTANT ] ))) ];
  8.     unsigned long buf_size = sizeof(buf);
  9.     unused(buf_size);
  10. }
RAW Paste Data
Top