mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 14:57:41 -05:00
udp/client: Define ClientData constructor/destructor in cpp file
Prevents compilation errors on clang 12 due to incomplete types within a unique_ptr member.
This commit is contained in:
parent
0896089092
commit
cda24b8eb1
2 changed files with 7 additions and 0 deletions
|
@ -144,6 +144,10 @@ Client::~Client() {
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Client::ClientData::ClientData() = default;
|
||||||
|
|
||||||
|
Client::ClientData::~ClientData() = default;
|
||||||
|
|
||||||
std::vector<Common::ParamPackage> Client::GetInputDevices() const {
|
std::vector<Common::ParamPackage> Client::GetInputDevices() const {
|
||||||
std::vector<Common::ParamPackage> devices;
|
std::vector<Common::ParamPackage> devices;
|
||||||
for (std::size_t client = 0; client < clients.size(); client++) {
|
for (std::size_t client = 0; client < clients.size(); client++) {
|
||||||
|
|
|
@ -98,6 +98,9 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct ClientData {
|
struct ClientData {
|
||||||
|
ClientData();
|
||||||
|
~ClientData();
|
||||||
|
|
||||||
std::string host{"127.0.0.1"};
|
std::string host{"127.0.0.1"};
|
||||||
u16 port{26760};
|
u16 port{26760};
|
||||||
std::size_t pad_index{};
|
std::size_t pad_index{};
|
||||||
|
|
Loading…
Reference in a new issue