Skip to content

Commit 20cdbe7

Browse files
committed
Julia: Wrap call to seriesFlush in lambda to resolve overload
1 parent 479b3d7 commit 20cdbe7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/binding/julia/Attributable.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ void define_julia_Attributable(jlcxx::Module &mod)
2020
type.method("cxx_comment", &Attributable::comment);
2121
type.method("cxx_set_comment!", &Attributable::setComment);
2222
type.method(
23-
"cxx_series_flush",
24-
static_cast<void (Attributable::*)()>(&Attributable::seriesFlush));
23+
"cxx_series_flush", [](Attributable &attr) { attr.seriesFlush(); });
2524
}

src/binding/julia/Datatype.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ void define_julia_Datatype(jlcxx::Module &mod)
1717
mod.method("cxx_to_bytes", toBytes);
1818
mod.method("cxx_to_bits", toBits);
1919
mod.method("cxx_is_vector", isVector);
20-
mod.method("cxx_is_floating_point", (bool (*)(Datatype))isFloatingPoint);
20+
mod.method(
21+
"cxx_is_floating_point",
22+
static_cast<bool (*)(Datatype)>(isFloatingPoint));
2123
mod.method(
2224
"cxx_is_complex_floating_point",
2325
static_cast<bool (*)(Datatype)>(isComplexFloatingPoint));

0 commit comments

Comments
 (0)