literal_cast Class Template Reference
[Conversion Library]
#include <stlsoft/conversion/literal_cast.hpp>
List of all members.
Detailed Description
template<typename T, literal_cast_int_t V>
class stlsoft::literal_cast< T, V >
Provides compile-time validation for casts of literal values.
- Parameters:
-
| T | The type to cast to |
| V | The literal value to be cast |
- Note:
- Thanks to Kevlin Henney (http://www.curbralan.com/) for insights into the solution.
|
Public Member Functions |
|
| operator T () const |
The documentation for this class was generated from the following file: