Skip to content

Commit

Permalink
test: fix for windows-2019/gcc8
Browse files Browse the repository at this point in the history
fixes error: no matching function for call to 'obx::Box<Typeful>::put(<brace-enclosed initializer list>)'
  • Loading branch information
dan-obx committed Jul 17, 2024
1 parent c0a9085 commit c1d0e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/typeful/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ TEST_CASE("CRUD", "") {
// put(`const Typeful&`) must be accepted for insert and update, just
// returning an ID
REQUIRE(box.put({.id = 0, .int_ = 11}) == 1);
REQUIRE(box.put({.id = 1, .int_ = 99, .floatvector = {-23.456f,42.109f}}) == 1); // NOTE: .int_ is set to 0 now
Typeful obj;
obj.id = 1;
obj.int_ = 99;
obj.floatvector = std::vector<float> {-23.456f, 42.109f};
REQUIRE(box.put(obj) == 1); // NOTE: .int_ is set to 0 now

// put(`Typeful&`) must set the ID on the given object
Typeful object2 = {};
Expand Down

0 comments on commit c1d0e24

Please sign in to comment.