Bart Samwel wrote:

> What about simply doing something like:
>
>    inline static void foo(const char*)
>    {
>      // do something with const char*
>    }
>
>    inline static void foo(int)
>    {
>      // do something with int
>    }
>
>    void bar()
>    {
>      foo(strerror_r(/* ... */));
>    }

Bart, you haven't ceased to amaze me!

In my hurry to get this done (both with and in spite of the autotools) it
never occurred to me to look for a much easier solution than the one taken
by the core PostgreSQL code.  I blindly assumed it had been thought out to
its full extent and all I had to do was just reuse the basic setup of
their solution.  Yet the backend is written in C, and this is C++.

Yes, this should absolutely work.  And eliminate a ton of complications.


Jeroen


_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to