John Hubbard
2013-09-05 19:25:15 UTC
It looks like version 3.x of pqxx placed the tuple class in the
pqxx::result namespace (i.e. pqxx::result::tuple). With version 4.x
tuple has been placed in the pqxx namespace (i.e. pqxx::tuple). It
looks like my use of pqxx is unaffected outside of this change. (I'm
not doing anything complicated.) I was hoping to change my code to
intelligently resolve the correct location for tuple. Does any know of
a good approach for determining what my using detective should look
like? I was thinking something along the lines of:
#include <pqxx>
#ifdef PQXX_VER_4
using libpqxx::tuple
#else
using libpqxx::result::tuple
#endif
So my question is: Does anyone know of any identifier that I could use
to determine whether my system is using pqxx-3 or pqxx-4, or is there a
better approach?
Thanks in advance
--
-john
To be or not to be, that is the question
2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
0b11000100 || !0b11000100
0b11000100 || 0b00111011
0b11111111
255, that is the answer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/libpqxx-general/attachments/20130905/8c357f5c/attachment.html>
pqxx::result namespace (i.e. pqxx::result::tuple). With version 4.x
tuple has been placed in the pqxx namespace (i.e. pqxx::tuple). It
looks like my use of pqxx is unaffected outside of this change. (I'm
not doing anything complicated.) I was hoping to change my code to
intelligently resolve the correct location for tuple. Does any know of
a good approach for determining what my using detective should look
like? I was thinking something along the lines of:
#include <pqxx>
#ifdef PQXX_VER_4
using libpqxx::tuple
#else
using libpqxx::result::tuple
#endif
So my question is: Does anyone know of any identifier that I could use
to determine whether my system is using pqxx-3 or pqxx-4, or is there a
better approach?
Thanks in advance
--
-john
To be or not to be, that is the question
2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
0b11000100 || !0b11000100
0b11000100 || 0b00111011
0b11111111
255, that is the answer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/libpqxx-general/attachments/20130905/8c357f5c/attachment.html>