OpenVPN 3 Core Library
Loading...
Searching...
No Matches
numeric_cast.hpp File Reference
#include "numeric_util.hpp"
#include <stdexcept>
#include <cstdint>
#include <openvpn/common/exception.hpp>
Include dependency graph for numeric_cast.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

◆ OPENVPN_EXCEPTION_INHERIT()

OPENVPN_EXCEPTION_INHERIT ( std::range_error  ,
numeric_out_of_range   
)