From 4c35486776d733048b86007c8dd47302cd90f0fe Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 1 Jan 2020 11:07:30 +1100 Subject: [PATCH] endian: specialise endian converter for identity transforms --- endian.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/endian.hpp b/endian.hpp index c16ba65b..e9f260fb 100644 --- a/endian.hpp +++ b/endian.hpp @@ -171,6 +171,11 @@ namespace cruft { static T convert (T t) { return ltob (t); } }; + template struct converter { + template + static T convert (T t) { return t; } + }; + template T convert (T t) {