On 5 March 2013 20:18, Nicolas Deroche <[email protected]> wrote:
> Thanks for the reply,
> I figured out casting from v.get<int> to C++'s unsigned long doesn't make
> any data loss, as you said in your mail
>
> I'd like to point out the lack of this information on the documentation on
> the website !

There is however documentation here
http://soci.sourceforge.net/doc/exchange.html#dynamic
and link to backend-specific pages below the small table.
I agree, this could be documented better, certainly.

If you see anything missing or you'd like to suggest any improvement,
feel more than welcome to open issue ticket at
https://github.com/SOCI/soci

> In the future, I hope this could change, and be able to use directly C++
> types in the get<T> template function, or at least something less strict
> like
> - short (0 to 255); int (0 to 65K); long (0 to 4M); and long 64 for greate
> values
> - bool's, and something else for other specific types.
>
> IMO, this could give some noob-friendly startup for the library !


You're right. We are aware it causes lots of confusions [1], including
to myself [2].
As Aleksander mentioned, we most likely will change that in future.

Personally, I think we should gear towards "C++ types first" approach
and try to cover them in a way most natural from C++ perspective.
I'm slowly sketching document [3] where I'm going to describe proposal on how
we want to handle C++ integers, in core and backends.
Any input will be appreciated.

[1] https://github.com/SOCI/soci/issues/90
[2] http://sourceforge.net/mailarchive/message.php?msg_id=30443672
[3] https://github.com/SOCI/soci/wiki/RFC1

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

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to