Commit f7287eea authored by Julius NehringWirxel's avatar Julius NehringWirxel

Added identities.

parent e77616eb
......@@ -43,6 +43,16 @@ struct make_unsigned_t<fixed_int<w> const>
using type = fixed_uint<w> const;
};
template <int w>
struct make_unsigned_t<fixed_uint<w>>
{
using type = fixed_uint<w>;
};
template <int w>
struct make_unsigned_t<fixed_uint<w> const>
{
using type = fixed_uint<w> const;
};
template <int w>
struct make_signed_t<fixed_uint<w>>
{
using type = fixed_int<w>;
......@@ -52,4 +62,14 @@ struct make_signed_t<fixed_uint<w> const>
{
using type = fixed_int<w> const;
};
template <int w>
struct make_signed_t<fixed_int<w>>
{
using type = fixed_int<w>;
};
template <int w>
struct make_signed_t<fixed_int<w> const>
{
using type = fixed_int<w> const;
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment