I'm trying to use a default argument in a C++ method defined like that:
/// Encapsulates a PDU on the wire.
class PDU {
public:
PDU();
const std::vector<uint8_t> frame();
static PDU ping(std::vector<uint8_t> payload = {});
};
I'm getting
error: missing argument for parameter #1 in call
let test = CANyonero.PDU.ping()
^
<#std.__1.vector<UInt8, allocator<UInt8>>#>
Are these not supported yet?
(Side note… what's the best way to allocate this vector from a Swift [UInt8]
?)