aboutsummaryrefslogtreecommitdiffstats
path: root/router
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-26 12:06:12 -0800
committerChris Robinson <[email protected]>2022-02-26 12:06:12 -0800
commit410f08c4e46b844af8f6484d3dccfaa3ef271cef (patch)
treeeab4f627347f3275fefc4c1bd291b7fa0179aa77 /router
parentc2d2ef2c0e3ec66d83c7c35ba0046dc347704e25 (diff)
Forward the DriverIface constructor's name
Diffstat (limited to 'router')
-rw-r--r--router/router.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/router/router.h b/router/router.h
index ec412b69..f49a96ef 100644
--- a/router/router.h
+++ b/router/router.h
@@ -7,10 +7,11 @@
#include <stdio.h>
-#include <vector>
-#include <string>
#include <atomic>
#include <mutex>
+#include <string>
+#include <utility>
+#include <vector>
#include "AL/alc.h"
#include "AL/al.h"
@@ -122,8 +123,9 @@ struct DriverIface {
LPALSPEEDOFSOUND alSpeedOfSound{nullptr};
LPALDISTANCEMODEL alDistanceModel{nullptr};
- DriverIface(std::wstring name, HMODULE mod)
- : Name(std::move(name)), Module(mod)
+ template<typename T>
+ DriverIface(T&& name, HMODULE mod)
+ : Name(std::forward<T>(name)), Module(mod)
{ }
~DriverIface()
{