OpenVPN 3 Core Library
|
#include "numeric_util.hpp"
#include <stdexcept>
#include <cstdint>
#include <openvpn/common/exception.hpp>
Go to the source code of this file.
Namespaces | |
namespace | openvpn |
namespace | openvpn::numeric_util |
Functions | |
OPENVPN_EXCEPTION_INHERIT (std::range_error, numeric_out_of_range) | |
template<typename OutT , typename InT > | |
OutT | openvpn::numeric_util::numeric_cast (InT inVal) |
Tests attempted casts to ensure the input value does not exceed the capacity of the output type. | |
OPENVPN_EXCEPTION_INHERIT | ( | std::range_error | , |
numeric_out_of_range | |||
) |