Skip to content

Commit 1aa1860

Browse files
committed
attempt #3
1 parent ff0a8df commit 1aa1860

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/include/sndx/data/data_tree.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ namespace sndx::data {
3333
template<class... Ts>
3434
struct overloads : Ts... { using Ts::operator()...; };
3535

36+
template<class... Ts>
37+
overloads(Ts...) -> overloads<Ts...>;
38+
3639
template <class T>
3740
concept numeric = std::integral<T> || std::floating_point<T>;
3841

src/include/sndx/input/glfw/window_glfw.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66

77
#include "../../render/viewport.hpp"
88

9+
#include <algorithm>
910
#include <type_traits>
1011
#include <string>
12+
#include <string_view>
1113
#include <stdexcept>
1214
#include <optional>
1315
#include <unordered_map>
1416

17+
1518
namespace sndx::input {
1619
class WindowGLFW : public Window<WindowGLFW> {
17-
friend Window;
20+
friend Window<WindowGLFW>;
1821
friend class WindowBuilderGLFW;
1922

2023
std::string m_title{};
@@ -168,7 +171,7 @@ namespace sndx::input {
168171
};
169172

170173
class WindowBuilderGLFW final: public WindowBuilder<WindowBuilderGLFW> {
171-
friend WindowBuilder;
174+
friend WindowBuilder<WindowBuilderGLFW>;
172175

173176
GLFWmonitor* m_monitor = nullptr;
174177
GLFWwindow* m_share = nullptr;

src/tests/input/fake_window_backend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace sndx::input;
1414

1515
class FakeWindow : public Window<FakeWindow> {
1616
public:
17-
friend Window;
17+
friend Window<FakeWindow>;
1818

1919
public:
2020
glm::vec2 m_pos{}, m_size{};

0 commit comments

Comments
 (0)