Fix Windows issue
This commit is contained in:
@@ -32,7 +32,12 @@ namespace OpenVulkano::Math
|
|||||||
|
|
||||||
RingBuffer<T, SIZE> m_buffer;
|
RingBuffer<T, SIZE> m_buffer;
|
||||||
T m_value;
|
T m_value;
|
||||||
[[no_unique_address]] std::conditional_t<RECALC, size_t, Empty> m_operations;
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-attributes"
|
||||||
|
[[no_unique_address]] [[msvc::no_unique_address]]
|
||||||
|
std::conditional_t<RECALC, size_t, Empty> m_operations;
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
public:
|
public:
|
||||||
RunningAverage(size_t size) requires (std::is_default_constructible_v<T> && SIZE == RING_BUFFER_DYNAMIC)
|
RunningAverage(size_t size) requires (std::is_default_constructible_v<T> && SIZE == RING_BUFFER_DYNAMIC)
|
||||||
|
|||||||
Reference in New Issue
Block a user