1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-02 20:30:00 +00:00

Further simplify syntax.

This commit is contained in:
Thomas Harte 2023-11-07 09:14:42 -05:00
parent 2af774601f
commit 2bed2c2c5c
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ template <typename IntT> struct Accessor<IntT, AccessType::ReadModifyWrite> { us
template<typename IntT> using read_t = typename Accessor<IntT, AccessType::Read>::type;
template<typename IntT> using write_t = typename Accessor<IntT, AccessType::Write>::type;
template<typename IntT> using modify_t = typename Accessor<IntT, AccessType::ReadModifyWrite>::type;
template<typename IntT, AccessType type> using access_t = typename Accessor<IntT, type>::type;
}

View File

@ -281,7 +281,7 @@ void add(IntT &destination, IntT source, ContextT &context) {
template <bool with_borrow, AccessType destination_type, typename IntT, typename ContextT>
void sub(
typename Accessor<IntT, destination_type>::type destination,
access_t<IntT, destination_type> destination,
read_t<IntT> source,
ContextT &context
) {