Hi,
In
https://github.com/SOCI/soci/commit/57704504bfd4f5aec5fe0db1ea596d2613db746dI'm
trying to check for infinity and NaN and throw a soci_error if that's
the case. The solution may not work for non-IEEE-754 implementations, in
particular for g++ --fast-math, but I know of no better way of doing it
portably in C++. In C++11 there is a special function for that,
std::isfinite(), which we should start using once we're in the C++11 world.
Let me know if this solution is satisfactory for you.
Thanks,
Aleksander
On Mon, Nov 26, 2012 at 9:02 AM, Mateusz Loskot <[email protected]> wrote:
> On 26 November 2012 16:55, Daniel Walter
> <[email protected]>wrote:
>
>> On 26.11.2012 17:34, Mateusz Loskot wrote:
>> > On 26 November 2012 16:32, Daniel Walter <
>> [email protected]> wrote:
>> >> On 26.11.2012 17:27, Mateusz Loskot wrote:
>> >>> On 26 November 2012 16:22, Pawel Aleksander Fedorynski <
>> [email protected]> wrote:
>> >>>> Hi Daniel,
>> >>>>
>> >>>> Thanks for writing. I'm not sure how exactly the special values
>> enter the
>> >>>> picture here, could you show us some code snippet demonstrating the
>> problem?
>> >>>
>> >>> Guys,
>> >>>
>> >>> Not sure if this plug is related tot his proble, but perhaps there is
>> >>> some string
>> >>> bashing involved. I remember Visual C++/GCC portability issue with C99
>> >>> feature like:
>> >>>
>> >>> srtod("NAN");
>> >>>
>> >>> Visual C++ gives up on that, obviously.
>> >>
>> >> Hi,
>> >>
>> >> here is some sample code: http://pastebin.com/arJTMs6K
>> >> It prints out:
>> >> Unknown column 'nan' in 'field list'
>> >> 1054
>> >
>> >
>> > Looks suspicious, feel free to submit
>> > ticket at https://github.com/SOCI/soci/issues
>>
>> New issue is commited
>> https://github.com/SOCI/soci/issues/22
>>
>>
> Big thanks!
>
>
> (The issues may seem a little redundant and hassle,
> but it really helps to track and not forgetting TODOs
> and saves lots of time generating release notes.)
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> soci-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/soci-users
>
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users