feat/update_config #10
@ -89,7 +89,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::variant<mpark::monostate, value_type> holding_;
|
mpark::variant<mpark::monostate, value_type> holding_;
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(std::is_void<decltype(std::declval<Boxed<>>().Get())>::value, "");
|
static_assert(std::is_void<decltype(std::declval<Boxed<>>().Get())>::value, "");
|
||||||
@ -110,7 +110,7 @@ RetrieveBoxed()
|
|||||||
|
|
||||||
template<typename... Ts>
|
template<typename... Ts>
|
||||||
template<typename... Us, typename>
|
template<typename... Us, typename>
|
||||||
Boxed<Ts...>::Boxed(box_values_t, Us &&...imms) : holding_(std::in_place_index_t<kValue>(), std::forward<Us>(imms)...)
|
Boxed<Ts...>::Boxed(box_values_t, Us &&...imms) : holding_(mpark::in_place_index_t<kValue>(), std::forward<Us>(imms)...)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template<typename... Ts>
|
template<typename... Ts>
|
||||||
|
@ -43,7 +43,7 @@ private:
|
|||||||
private:
|
private:
|
||||||
// std::mutex lock_;
|
// std::mutex lock_;
|
||||||
Mutex lock_;
|
Mutex lock_;
|
||||||
std::variant<WaitingForSingleObject, Satisfied> state_;
|
mpark::variant<WaitingForSingleObject, Satisfied> state_;
|
||||||
Executor executor_;
|
Executor executor_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if __cplusplus >= 201703L
|
|
||||||
#include <variant>
|
|
||||||
#else
|
|
||||||
#include "tile/base/internal/variant.h"
|
#include "tile/base/internal/variant.h"
|
||||||
|
|
||||||
namespace std {
|
|
||||||
using namespace mpark;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif// TILE_BASE_VARIANT_H
|
#endif// TILE_BASE_VARIANT_H
|
||||||
|
Loading…
Reference in New Issue
Block a user