Skip to content

Commit c7a6c96

Browse files
committed
Fix compilation errors
1 parent 6c0204e commit c7a6c96

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/build-windows-msys2.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
4040
- name: "Build"
4141
env:
42-
JAVA_HOME: ${{ env.JAVA_HOME_21_X64 }}
4342
INCLUDE: C:\msys64\usr\include\w32api
4443
LIB: C:\msys64\usr\lib\w32api
4544
run: |

proto/trade.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ struct Order
201201
Volume = model.volume();
202202
}
203203

204+
// zpp::bits serialization
205+
206+
using serialize = zpp::bits::members<6>;
207+
204208
// JSON serialization
205209

206210
template<typename OutputStream>
@@ -321,6 +325,10 @@ struct Balance
321325
Amount = model.amount();
322326
}
323327

328+
// zpp::bits serialization
329+
330+
using serialize = zpp::bits::members<2>;
331+
324332
// JSON serialization
325333

326334
template<typename OutputStream>
@@ -500,6 +508,10 @@ struct Account
500508
}
501509
}
502510

511+
// zpp::bits serialization
512+
513+
using serialize = zpp::bits::members<4>;
514+
503515
// JSON serialization
504516

505517
template<typename OutputStream>
@@ -539,11 +551,6 @@ struct Account
539551
}
540552
};
541553

542-
// zpp::bits serialization
543-
auto serialize(const Order&) -> zpp::bits::members<6>;
544-
auto serialize(const Balance&) -> zpp::bits::members<2>;
545-
auto serialize(const Account&) -> zpp::bits::members<4>;
546-
547554
} // namespace Trade
548555

549556
#endif // CPPSERIALIZATION_PROTO_TRADE_H

0 commit comments

Comments
 (0)