mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Further simplify syntax.
This commit is contained in:
parent
2af774601f
commit
2bed2c2c5c
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user