[odb-users] How to Modify ODB template by generate code

Boris Kolpackov boris at codesynthesis.com
Mon Dec 10 10:06:31 EST 2012


Hi,

Justlive <duhai_lee at qq.com> writes:

> My compiler is vc2003, OS is windows 7. Generate code by ODB command,
> compily it, then make a mistake...

No, there is no mistake in the generated code. VC++ 2003 is very old
and buggy and therefore not supported. Even if you apply your workarounds,
I wouldn't be surprised that more things will break down the road.


> but I can't found that to change the template

There is no "template". The generated code is too complex to use some
sort of a template system. The only way to customize the generated
code is by modifying the ODB compiler source code. However, it will
be much easier to just upgrade to a more recent version of VC++. As
you have said, everything works just fine with VC++ 2010 (as with
2008 and 2012).

Boris



More information about the odb-users mailing list