aboutsummaryrefslogtreecommitdiff
path: root/include/ble/att.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-11-23 16:41:24 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-11-23 16:41:24 +0100
commitaf416f81b14a3bee682e300b165a6efdb9739d54 (patch)
tree20c4704d5d24ed18a78970f9331aec12c9522a41 /include/ble/att.h
parent2034b1bb10720a2f0e6cc97427346f2320c115bc (diff)
downloadble-toys-af416f81b14a3bee682e300b165a6efdb9739d54.tar.gz
ble-toys-af416f81b14a3bee682e300b165a6efdb9739d54.tar.bz2
ble-toys-af416f81b14a3bee682e300b165a6efdb9739d54.tar.xz
ble-toys-af416f81b14a3bee682e300b165a6efdb9739d54.zip
o Trying to improve compatibility with some feature checks.
o Misc nits.
Diffstat (limited to 'include/ble/att.h')
-rw-r--r--include/ble/att.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ble/att.h b/include/ble/att.h
index 152a779..7b77812 100644
--- a/include/ble/att.h
+++ b/include/ble/att.h
@@ -1,6 +1,5 @@
#pragma once
-#include <variant>
#include <vector>
#include "ble/ByteBuffer.h"
@@ -9,6 +8,9 @@
namespace trygvis {
namespace bluetooth {
+using ::trygvis::compiler::variant;
+using ::trygvis::compiler::monostate;
+
/**
* BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] - Attribute Protocol (ATT) - 3.4.8 Attribute Opcode Summary
* Table 3.37
@@ -144,7 +146,7 @@ struct HandleValueIndication {
ByteBuffer data;
};
-using AttVariant = std::variant<std::monostate,
+using AttVariant = variant<monostate,
ErrorRes,
ExchangeMtuReq, ExchangeMtuRes,
FindInformationRes,