endian: specialise endian converter for identity transforms
This commit is contained in:
parent
e05b522827
commit
4c35486776
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user