diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 18:37:05 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | b94a7282ecbde37c2b88fd8327a409cebe046b30 (patch) | |
tree | 9ce772daf3ad43e1bcd8e6535bdeead30f729d5c /include | |
parent | d4584ffcc12df81a1b6e002233350a7850f84895 (diff) | |
download | chilbert-b94a7282ecbde37c2b88fd8327a409cebe046b30.tar.gz chilbert-b94a7282ecbde37c2b88fd8327a409cebe046b30.tar.bz2 chilbert-b94a7282ecbde37c2b88fd8327a409cebe046b30.zip |
Fix potential ODR violations due to definitions in headers
Diffstat (limited to 'include')
-rw-r--r-- | include/chilbert/DynamicBitVec.hpp | 4 | ||||
-rw-r--r-- | include/chilbert/SmallBitVec.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/chilbert/DynamicBitVec.hpp b/include/chilbert/DynamicBitVec.hpp index 722b689..e834ee0 100644 --- a/include/chilbert/DynamicBitVec.hpp +++ b/include/chilbert/DynamicBitVec.hpp @@ -137,14 +137,14 @@ struct is_bitvec<DynamicBitVec> }; template <> -void +inline void gray_code(DynamicBitVec& value) { gray_code(static_cast<MultiBitVec<DynamicBitVec>&>(value)); } template <> -void +inline void gray_code_inv(DynamicBitVec& value) { gray_code_inv(static_cast<MultiBitVec<DynamicBitVec>&>(value)); diff --git a/include/chilbert/SmallBitVec.hpp b/include/chilbert/SmallBitVec.hpp index 4ddce46..b1fe474 100644 --- a/include/chilbert/SmallBitVec.hpp +++ b/include/chilbert/SmallBitVec.hpp @@ -358,14 +358,14 @@ struct is_bitvec<SmallBitVec> }; template <> -void +inline void gray_code(SmallBitVec& value) { value.rack() ^= (value.rack() >> 1U); } template <> -void +inline void gray_code_inv(SmallBitVec& value) { gray_code_inv<SmallBitVec::Rack>(value.rack()); |