On Mon, Jul 18, 2005 at 09:19:53AM -0700, J Robinson wrote:
> One question: I'd like to be able to maintain one code
> base that works with 1.7 and 2.0 for the next while.
> Is there a #define (or other methodology) I can use to
> detect the version of mysql++ installed and
> conditionally compile code for mysqlpp 1.7.XX or 2.0
> as appropriate?
I think this is a reasonable request. Any objections to adding this
#define MYSQLPP_LIB_VERSION 200 // version 2.0.x of the library
This would be incremented like this:
#define MYSQLPP_LIB_VERSION 201 // version 2.1.x of the library
etc. and would allow:
#if MYSQLPP_LIB_VERSION >= 200
For those that need it.