From 2165d7908de2265789d3102e5c63be8ba896aae5 Mon Sep 17 00:00:00 2001 From: bemandawes Date: Fri, 27 Aug 2010 14:49:42 +0000 Subject: [PATCH] make inline git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@65052 b8fc166d-592f-0410-95f2-cb63ce0dd405 --- boost/integer/endian_flip.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/boost/integer/endian_flip.hpp b/boost/integer/endian_flip.hpp index 69fafe1..132fd47 100644 --- a/boost/integer/endian_flip.hpp +++ b/boost/integer/endian_flip.hpp @@ -13,7 +13,7 @@ namespace boost { namespace integer { - void endian_flip(int16_t& x) + inline void endian_flip(int16_t& x) { char* rep = reinterpret_cast(&x); char tmp; @@ -22,7 +22,7 @@ namespace integer *(rep+1) = tmp; } - void endian_flip(int32_t& x) + inline void endian_flip(int32_t& x) { char* rep = reinterpret_cast(&x); char tmp; @@ -34,7 +34,7 @@ namespace integer *(rep+2) = tmp; } - void endian_flip(int64_t& x) + inline void endian_flip(int64_t& x) { char* rep = reinterpret_cast(&x); char tmp; @@ -52,7 +52,7 @@ namespace integer *(rep+4) = tmp; } - void endian_flip(uint16_t& x) + inline void endian_flip(uint16_t& x) { char* rep = reinterpret_cast(&x); char tmp; @@ -61,7 +61,7 @@ namespace integer *(rep+1) = tmp; } - void endian_flip(uint32_t& x) + inline void endian_flip(uint32_t& x) { char* rep = reinterpret_cast(&x); char tmp; @@ -73,7 +73,7 @@ namespace integer *(rep+2) = tmp; } - void endian_flip(uint64_t& x) + inline void endian_flip(uint64_t& x) { char* rep = reinterpret_cast(&x); char tmp;