piranha
0.10
|
Specialisation of piranha::safe_cast() for C++ integral types. More...
#include <piranha/safe_cast.hpp>
Public Member Functions | |
To | operator() (const From &f) const |
Call operator. More... | |
Specialisation of piranha::safe_cast() for C++ integral types.
This specialisation is enabled when both To
and From
are integral types.
Definition at line 103 of file safe_cast.hpp.
|
inline |
Call operator.
The call operator uses boost::numeric_cast()
to perform a safe conversion between integral types.
f | conversion argument. |
f
cast safely to To
.piranha::safe_cast_failure | if boost::numeric_cast() raises an error. |
Definition at line 115 of file safe_cast.hpp.