aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/details/endian-traits.hxx10
1 files changed, 10 insertions, 0 deletions
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 <typename T>
+ struct swap_endian<T, 1>
+ {
+ static T
+ swap (T x)
+ {
+ return x;
+ }
+ };
+
+ template <typename T>
struct swap_endian<T, 2>
{
static T