borromeotlhs / amop

Automatically exported from code.google.com/p/amop
0 stars 0 forks source link

Compilation error with BCB 2009 #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running with WIN32 compiler conditional define
2.
3.

What is the expected output? What do you see instead?
The AMOP library should be construct, but there is a compilation error:
"E2021: array must have at least one element" in Config.h, line 84, inside
HorribleCast.

What version of the product are you using? On what operating system?
AMOP 0.31.3 on WinXP.

Please provide any additional information below.
There is a comment inside HorribleCast function: "Cause a compile-time
error if in, out and u are not the same size. If the compile fails here, it
means the compiler has peculiar unions which would prevent the cast from
working.". So, this is a clue about what is going on.

Original issue reported on code.google.com by thiago-dp@bol.com.br on 12 Jan 2009 at 10:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
One more thing: Also tested with /tags/0.32.3/ and gave the same results.

Original comment by thiago-dp@bol.com.br on 12 Jan 2009 at 11:49

GoogleCodeExporter commented 9 years ago
Just for Completion... On C++ Builder 6 the results are the same with both 
versions
cited. 

Original comment by ronald.p...@gmail.com on 14 Jan 2009 at 11:06