blob: 01a15a332a63d678ecb8881b0021358b13e1605e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "compat/defs.hpp"
#include "tests.hpp"
#include "src/point.hpp"
#include <vector>
#include <variant>
namespace floormat::tests {
template<typename... Ts> struct overloaded : Ts... { using Ts::operator()...; };
template<typename... Ts> overloaded(Ts...) -> overloaded<Ts...>;
struct path_test
{
point from;
std::vector<point> path;
bool active = false;
};
using variant = std::variant<std::monostate, tests::path_test>;
} // namespace floormat::tests
namespace floormat {
struct tests_data final : tests_data_, tests::variant
{
fm_DECLARE_DELETED_COPY_ASSIGNMENT(tests_data);
tests_data();
~tests_data() noexcept override;
using tests::variant::operator=;
//tests::variant& operator*();
//tests::variant* operator->();
};
} // namespace floormat
|