From 7b8f10fad7392a10f70232de546504ceae7e07da Mon Sep 17 00:00:00 2001 From: Jeff Snyder Date: Wed, 28 Jun 2017 00:02:03 +0100 Subject: [PATCH] Make byte's non-constexpr operators inline --- include/tao/json/byte.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tao/json/byte.hpp b/include/tao/json/byte.hpp index d6af82eb..c9e4b2f0 100644 --- a/include/tao/json/byte.hpp +++ b/include/tao/json/byte.hpp @@ -58,7 +58,7 @@ namespace tao return byte( static_cast< unsigned char >( b ) >> shift ); } - byte& operator|=( byte& l, byte r ) noexcept + inline byte& operator|=( byte& l, byte r ) noexcept { return l = byte( static_cast< unsigned char >( l ) | static_cast< unsigned char >( r ) ); } @@ -68,7 +68,7 @@ namespace tao return byte( static_cast< unsigned char >( l ) | static_cast< unsigned char >( r ) ); } - byte& operator&=( byte& l, byte r ) noexcept + inline byte& operator&=( byte& l, byte r ) noexcept { return l = byte( static_cast< unsigned char >( l ) & static_cast< unsigned char >( r ) ); } @@ -78,7 +78,7 @@ namespace tao return byte( static_cast< unsigned char >( l ) & static_cast< unsigned char >( r ) ); } - byte& operator^=( byte& l, byte r ) noexcept + inline byte& operator^=( byte& l, byte r ) noexcept { return l = byte( static_cast< unsigned char >( l ) ^ static_cast< unsigned char >( r ) ); }