enum class field access
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
#include <sp/protocol/Field.h>
|
||||
#include <sp/protocol/MessageBase.h>
|
||||
|
||||
enum KeepAlivePacketFields {
|
||||
enum class KeepAliveFieldsE {
|
||||
KeepAliveId = 0,
|
||||
TestAlignField = 1,
|
||||
};
|
||||
|
||||
using KeepAliveFields = std::tuple<
|
||||
@@ -18,6 +17,6 @@ DeclarePacket(KeepAlive){
|
||||
PacketConstructor(KeepAlive)
|
||||
|
||||
std::uint64_t GetKeepAliveId() const {
|
||||
return GetField<KeepAlive>();
|
||||
return GetField<KeepAliveFieldsE, KeepAliveFieldsE::KeepAliveId>();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user