Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding is_arithmetic, is_floating, etc. traits to xmasked_value. #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions include/xtl/xmasked_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,28 @@ namespace xtl
#undef DEFINE_UNARY_BOOL_OPERATOR
#undef DEFINE_OPERATOR
#undef DEFINE_BOOL_OPERATOR


template <class T, class B>
struct is_scalar<xmasked_value<T, B>> : is_scalar<std::remove_reference_t<T>>
{
};

template <class T, class B>
struct is_arithmetic<xmasked_value<T, B>> : is_arithmetic<std::remove_reference_t<T>>
{
};

template <class T, class B>
struct is_signed<xmasked_value<T, B>> : is_signed<std::remove_reference_t<T>>
{
};

template <class T, class B>
struct is_floating_point<xmasked_value<T, B>> : is_floating_point<std::remove_reference_t<T>>
{
};

}

#endif