forked from ShuriZma/suyu
1
0
Fork 0

IPC: Allow passing arguments to the Interfaces when using PushIpcInterface

This commit is contained in:
Subv 2018-01-08 18:17:12 -05:00 committed by bunnei
parent 25f29c2f4f
commit fb73e8b723
1 changed files with 3 additions and 3 deletions

View File

@ -98,9 +98,9 @@ public:
PushRaw(data_payload_header);
}
template <class T>
void PushIpcInterface() {
context->AddDomainObject(std::make_shared<T>());
template <class T, class... Args>
void PushIpcInterface(Args&&... args) {
context->AddDomainObject(std::make_shared<T>(std::forward<Args>(args)...));
}
// Validate on destruction, as there shouldn't be any case where we don't want it