diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/nodeoffset.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/nodeoffset.hxx b/sw/inc/nodeoffset.hxx index 0911fdb67b23..035925855b31 100644 --- a/sw/inc/nodeoffset.hxx +++ b/sw/inc/nodeoffset.hxx @@ -17,14 +17,16 @@ typedef o3tl::strong_int<sal_Int32, struct Tag_SwNodeOffset> SwNodeOffset; /* Just to make it easier to write arithmetic with these types */ template <typename T> -typename std::enable_if<std::is_signed<T>::value, SwNodeOffset>::type operator+(SwNodeOffset a, T n) +inline typename std::enable_if<std::is_signed<T>::value, SwNodeOffset>::type +operator+(SwNodeOffset a, T n) { return a + SwNodeOffset(n); } /* Just to make it easier to write arithmetic with these types */ template <typename T> -typename std::enable_if<std::is_signed<T>::value, SwNodeOffset>::type operator-(SwNodeOffset a, T n) +inline typename std::enable_if<std::is_signed<T>::value, SwNodeOffset>::type +operator-(SwNodeOffset a, T n) { return a - SwNodeOffset(n); } |