Files
scylladb/idl/utils.idl.hh
Benny Halevy f5f566bdd8 utils: add tagged_integer
A generic template for defining strongly typed
integer types.

Use it here to replace raft::internal::tagged_uint64.
Will be used for defining gms generation and version
as strong and distinguishable types in following patches.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
2023-04-23 08:37:32 +03:00

19 lines
273 B
C++

/*
* Copyright 2023-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include "utils/tagged_integer.hh"
namespace utils {
template<typename Tag, typename ValueType>
struct tagged_integer final {
ValueType value();
};
} // namespace utils