skip to main | skip to sidebar

Shiftbit

Programming related blogs.

Tuesday, November 23, 2010

Force a compiler Failure

#define COMPILE_TIME_ASSERT(expr) \
typedef char compile_time_constraint[(expr)? 1:-1]
Posted by Mac at 3:22 PM No comments:
Labels: C++
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2010 (8)
    • ▼  November (1)
      • Force a compiler Failure
    • ►  October (2)
    • ►  August (1)
    • ►  March (2)
    • ►  January (2)
  • ►  2009 (4)
    • ►  November (1)
    • ►  October (1)
    • ►  March (2)

About Me

Mac
View my complete profile