code_junkie

How to create type-safe int - enum in C++

Nov 14th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. // macro used to implement a strong typedef. strong typedef
  2. // guarentees that two types are distinguised even though the
  3. // share the same underlying implementation. typedef does not create
  4. // a new type. BOOST_STRONG_TYPEDEF(T, D) creates a new type named D
  5. // that operates as a type T.
Add Comment
Please, Sign In to add comment