Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65052 - sandbox/endian/boost/integer
From: bdawes_at_[hidden]
Date: 2010-08-27 10:49:48


Author: bemandawes
Date: 2010-08-27 10:49:42 EDT (Fri, 27 Aug 2010)
New Revision: 65052
URL: http://svn.boost.org/trac/boost/changeset/65052

Log:
make inline
Text files modified:
   sandbox/endian/boost/integer/endian_flip.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/endian/boost/integer/endian_flip.hpp
==============================================================================
--- sandbox/endian/boost/integer/endian_flip.hpp (original)
+++ sandbox/endian/boost/integer/endian_flip.hpp 2010-08-27 10:49:42 EDT (Fri, 27 Aug 2010)
@@ -13,7 +13,7 @@
 {
 namespace integer
 {
- void endian_flip(int16_t& x)
+ inline void endian_flip(int16_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;
@@ -22,7 +22,7 @@
     *(rep+1) = tmp;
   }
 
- void endian_flip(int32_t& x)
+ inline void endian_flip(int32_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;
@@ -34,7 +34,7 @@
     *(rep+2) = tmp;
   }
 
- void endian_flip(int64_t& x)
+ inline void endian_flip(int64_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;
@@ -52,7 +52,7 @@
     *(rep+4) = tmp;
   }
 
- void endian_flip(uint16_t& x)
+ inline void endian_flip(uint16_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;
@@ -61,7 +61,7 @@
     *(rep+1) = tmp;
   }
 
- void endian_flip(uint32_t& x)
+ inline void endian_flip(uint32_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;
@@ -73,7 +73,7 @@
     *(rep+2) = tmp;
   }
 
- void endian_flip(uint64_t& x)
+ inline void endian_flip(uint64_t& x)
   {
     char* rep = reinterpret_cast<char*>(&x);
     char tmp;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk