Re: A couple of bugs in 0.91 with dblib bcp library

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2011/5/22 James K. Lowden <[email protected]>:
...
>
>> How I miss C++ and its type safety, I would use an enum and compiler
>> gave me at least a warning :)
>
> tds.h    144 #define TDS_SUCCESS 1
>
> Your enum awaits, sire.  ;-)
>

Why things that seems easy are not that easy ?? Cfr
http://stackoverflow.com/questions/366017/what-is-the-size-of-an-enum-in-c.

That is if I define RETCODE as an enum I have to define my enumerator
correctly in order to not avoid ABI compatibility...

freddy
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.