Skip to content

Commit 15d12bd

Browse files
committed
ci: msvc fixes
1 parent e7c761a commit 15d12bd

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

examples/Advanced/Image/LightnessSampler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <halp/texture.hpp>
88

99
#include <chrono>
10+
#include <algorithm>
11+
1012
namespace vo
1113
{
1214
// Graphical item which will display the texture

examples/Advanced/Utilities/Accumulator.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ struct Accumulator
3535
struct inputs_t
3636
{
3737
halp::val_port<"In", std::optional<float>> in;
38-
struct : halp::impulse_button<"Reset">
38+
struct : halp::toggle<"Reset">
3939
{
4040
void update(Accumulator& self)
4141
{
4242
std::destroy_at(&self.minmax);
4343
std::construct_at(&self.minmax);
44+
self.outputs.count.value = 0;
45+
self.outputs.sum.value = 0;
46+
self.outputs.diff.value = 0;
47+
self.outputs.min.value = 0;
48+
self.outputs.max.value = 0;
49+
self.outputs.mean.value = 0;
50+
self.outputs.variance.value = 0;
51+
self.outputs.median.value = 0;
52+
self.outputs.kurtosis.value = 0;
4453
}
4554
} reset;
4655
} inputs;

examples/Midi/MidiSyncInput.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <ossia/detail/small_vector.hpp>
1212

1313
#include <array>
14+
#include <chrono>
1415
#include <optional>
1516

1617
namespace mo

include/gpp/layout.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ consteval int std140_size()
121121
*/
122122

123123
#if defined(_MSC_VER)
124-
#define MSVC_BUGGY_CONSTEVAL
125-
#define MSVC_BUGGY_CONSTEXPR
124+
#define MSVC_BUGGY_CONSTEVAL consteval
125+
#define MSVC_BUGGY_CONSTEXPR constexpr
126126
#else
127127
#define MSVC_BUGGY_CONSTEVAL consteval
128128
#define MSVC_BUGGY_CONSTEXPR constexpr

0 commit comments

Comments
 (0)