From cb40b0808a639fa0de330cb2b88574a0e8b4d2d5 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 4 Mar 2023 17:49:03 -0400 Subject: TProtocol: Match ctor The reason for the large change is because I was trying to figure out why `TTcpSocket`'s ctor was so disjointed from the rest of the functions. Turns out, it's inlined, and inlining was turned off. Most likely, the whole codebase has inlining turned off. oof, press f `TArray`. --- include/pso/TArray.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/pso/TArray.h') diff --git a/include/pso/TArray.h b/include/pso/TArray.h index cefe6c8..c9ac0e6 100644 --- a/include/pso/TArray.h +++ b/include/pso/TArray.h @@ -173,4 +173,9 @@ private: }; }; +template +inline TArray &to_TArray(T *array) { + return reinterpret_cast &>(*array); +} + #endif -- cgit v1.2.3-13-gbd6f