author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Sun, 02 Mar 2008 21:12:21 +0100 | |
changeset 2532 | 86a40c7cbfe9 |
parent 1680 | 151684970a80 |
child 3372 | 184673f59f53 |
permissions | -rw-r--r-- |
#ifndef INT_TO_TYPE_H #define INT_TO_TYPE_H namespace ns3 { /** * This trivial template is extremely useful, as explained in * "Modern C++ Design", p29, section 2.4, * "Mapping Integral Constants to Types" */ template <int v> struct IntToType { enum {value = v}; }; } // namespace ns3 #endif /* INT_TO_TYPE_H */