On 4 April 2014 15:31, Andrew Grafham <andrew.graf...@gmail.com> wrote: > On 4 April 2014 13:34, Vadim Zeitlin <vz-s...@zeitlins.org> wrote: >> On Fri, 4 Apr 2014 11:39:34 +0100 Andrew Grafham >> <andrew.graf...@gmail.com> wrote: >> >> AG> It doesn't look like that patch would work, as the problem is in the >> oracle >> AG> backend (standard-into-type.cpp. standard-use-type.cpp and >> AG> vector-into-type.cpp). But doing a similar trick in those files >> worked, >> AG> i.e. adding:- >> AG> >> AG> #ifndef __MINGW32__ >> AG> using std::strtoll; >> AG> using std::strtoull; >> AG> #endif >> >> Just a note: whichever fix we end up using, could we please do it in >> soci-platform.h, where we already have a workaround for MSVC, instead of >> doing it in several different source files. >> >> TIA, >> VZ >> > > I was thinking that would be neater too, but we'd have to think of a > different way to fix it, as it's not a good idea to put a "using" statement > into a header file.
Or, we may flip it: #if defined(__CYGWIN__) || defined(__MINGW32__) namespace std { using strtoll; // or using __gnu_cxx::strtoll ? } #endif Best regards, -- Mateusz Łoskot, http://mateusz.loskot.net ------------------------------------------------------------------------------ _______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users