Skip to content

Commit

Permalink
Merge pull request ceph#54787 from cbodley/wip-versioned-variant-inline
Browse files Browse the repository at this point in the history
common: use inline for monostate dencoders

Reviewed-by: Adam C. Emerson <[email protected]>
  • Loading branch information
cbodley authored Dec 6, 2023
2 parents f64ad44 + 0179a8e commit 8cd25c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/versioned_variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
namespace ceph {

// null encoding for std::monostate
void encode(const std::monostate&, bufferlist& bl) {}
void decode(std::monostate&, bufferlist::const_iterator& p) {}
inline void encode(const std::monostate&, bufferlist& bl) {}
inline void decode(std::monostate&, bufferlist::const_iterator& p) {}

// largest value that can be represented by `__u8 struct_v`
inline constexpr size_t max_version = std::numeric_limits<__u8>::max();
Expand Down

0 comments on commit 8cd25c3

Please sign in to comment.