From 3ddf5bf9914182bebc4bb2b6d64741c8246a0ca5 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Mon, 27 Jun 2011 13:53:59 +0200 Subject: Add a nop specialization for converting byte order of a single byte --- odb/pgsql/details/endian-traits.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/odb/pgsql/details/endian-traits.hxx b/odb/pgsql/details/endian-traits.hxx index b21d51e..5e29fb8 100644 --- a/odb/pgsql/details/endian-traits.hxx +++ b/odb/pgsql/details/endian-traits.hxx @@ -29,6 +29,16 @@ namespace odb struct swap_endian; template + struct swap_endian + { + static T + swap (T x) + { + return x; + } + }; + + template struct swap_endian { static T -- cgit v1.1