@@ -30,6 +30,12 @@ class IFunctionWrapper {
3030 virtual bool operator ()(MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) = 0;
3131};
3232
33+ #ifdef ARDUINO_ARCH_ZEPHYR
34+ using std::make_index_sequence;
35+ #else
36+ using arx::stdx::make_index_sequence;
37+ #endif
38+
3339#ifdef ARDUINO_ARCH_ZEPHYR
3440template <typename R, typename ... Args>
3541class RpcFunctionWrapper : public IFunctionWrapper {
@@ -100,7 +106,7 @@ class RpcFunctionWrapper<std::function<R(Args...)>>: public IFunctionWrapper {
100106 std::tuple<Args...> args;
101107 if (!deserialize_tuple (unpacker, args)) return false ;
102108 MsgPack::object::nil_t nil;
103- invoke_with_tuple (_func, args, arx::stdx:: make_index_sequence<sizeof ...(Args)>{});
109+ invoke_with_tuple (_func, args, make_index_sequence<sizeof ...(Args)>{});
104110 packer.serialize (nil, nil);
105111 return true ;
106112 }
@@ -112,7 +118,7 @@ class RpcFunctionWrapper<std::function<R(Args...)>>: public IFunctionWrapper {
112118 std::tuple<Args...> args;
113119 if (!deserialize_tuple (unpacker, args)) return false ;
114120 MsgPack::object::nil_t nil;
115- R out = invoke_with_tuple (_func, args, arx::stdx:: make_index_sequence<sizeof ...(Args)>{});
121+ R out = invoke_with_tuple (_func, args, make_index_sequence<sizeof ...(Args)>{});
116122 packer.serialize (nil, out);
117123 return true ;
118124 }
0 commit comments