I've looked at your code and the purpose and motivation are totally
incomprehensible to me. I cannot follow it. I see no reason for
a lot of the stuff you do here and a thorough analysis of the compile
time error is really beyond me.
I did take a little bit of time with your main program and recast it
in a form which I believe reflects your intention as well as the way
I would expect most people to find the serialization library useful.
I started out with your main program and comment out parts
which were irrelevant to our question here. I added some
#defines and typedefs for constants and types presumably
specified in other headers.
I've attached my amended copy of your code. I compiles on MSVC 7.1.
I think a more careful study of the documentation demos and tests would
be of value.
I hope this is helpful.
Robert Ramey
begin 666 test_zmisc.cpp
M(VEF(# -"B-I;F-L=61E(")C;W)E+W-Y7-T96TO06=E;G1-86YA9V5R+F@B#0HC:6YC
M;'5D92 B86DO86=E;G1S>7-T96TO04E#;VYT7!E9&5F('5N"D@, T*#0HC:6YC;'5D92 \8F]O7!E9&5F(&)O;W-T.CIAF-H:79E(%1E'1!F-H:79E+W1E'1?:6%R8VAI=F4N:'!P/@T*='EP961E9B!B;V]S=#HZ
M87)C:&EV93HZ=&5X=%]I87)C:&EV92!497AT07)C:&EV94D[#0H-"@T*;F%M
M97-P86-E($9L;W=%;F=I;F4-"GL-"@EC;&%SPT*
M"7!U8FQI8SH-"@D)PT*"0D)=&5X=" ](")/;&$@'0[#0H)"0DO+V%R("8@;5]O
M=VYEPT*"7!U8FQI8SH)"0T*#0H)"6EN="!D=6UB:3L-"@D)
M9FQO870@9'5M8F8[#0HO+PD)5F5C=&]R,F8@=F5C=&]R5&5S=#L-"B\O"0E-
M871R:7@S,R!M871R:7@[#0H)"4,J('1ER -"@D)"71EPD-"B @(" @(" @(" @(&%R("8@9'5M8FD[#0H)
M"0DO+V%R("8@=F5C=&]R5&5S=#L-"@D)"2\O87(@)B!M871R:7@[#0H@(" @
M(" @(" @("!APT*"7!R:79A=&4Z#0H)"6EN="!D=6UB0FD[#0H)"69L;V%T(&1U;6)"9CL-
M"@T*"7!U8FQI8SH-"@T*"0E"*"DZ9'5M8D)I*#DI+"!D=6UB0F8H,"XY.#PT*"0E]#0H)"0T*"0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-T96U38W)I<'177-T96U38W)I<'17PT*"0D)"4=E=$=524UA;F%G97(H*2T^56Y,;V%D36]V:64H;&]A
M9&EN9U-C4UA# Q*3L-"@D)"5-E=%1HPT*"0D)"4=E=$=524UA;F%G
M97(H*2T^56Y,;V%D36]V:64H;&]A9&EN9U-CPT*+R\)"0E&
M15],3T=?15)23U(H1D5?24Y604Q)1%!!4D%-+" B4&QE87-E(&EN