Skip to content

Commit 92f69d7

Browse files
committed
fix: split default-arg ctor into two overloads (GCC nested struct DMI bug)
1 parent cce2cf4 commit 92f69d7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/MockOmsAdapter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ class MockOmsAdapter : public OmsAdapter {
3434
struct Config {
3535
/// Delay between consecutive state emissions.
3636
std::chrono::milliseconds emit_interval{10};
37-
Config() = default;
37+
3838
};
3939

4040
/// Construct the mock adapter with the given configuration.
4141
///
4242
/// # Arguments
4343
/// * `config` — Emission timing parameters (default: 10 ms interval).
44-
explicit MockOmsAdapter(Config config = Config{});
44+
explicit MockOmsAdapter();
45+
explicit MockOmsAdapter(Config config);
4546

4647
/// Destructor: calls stop() to join the background thread.
4748
~MockOmsAdapter() override;

0 commit comments

Comments
 (0)