endian: specialise endian converter for identity transforms

This commit is contained in:
Danny Robson 2020-01-01 11:07:30 +11:00
parent e05b522827
commit 4c35486776

View File

@ -171,6 +171,11 @@ namespace cruft {
static T convert (T t) { return ltob (t); }
};
template <scheme SchemeV> struct converter<SchemeV, SchemeV> {
template <typename T>
static T convert (T t) { return t; }
};
template <scheme DstV, scheme SrcV, typename T>
T convert (T t)
{