On 4 April 2014 15:45, Mateusz Łoskot <[email protected]> wrote:
> On 4 April 2014 15:31, Andrew Grafham <[email protected]> wrote:
>> On 4 April 2014 13:34, Vadim Zeitlin <[email protected]> wrote:
>>> On Fri, 4 Apr 2014 11:39:34 +0100 Andrew Grafham
>>> <[email protected]> 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


Patches in hotfix/3.2.3 branch
https://github.com/SOCI/soci/pull/246#issuecomment-39619543
Testing welcome.

Best regards,
-- 
Mateusz  Łoskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to