Discussion:
[soci-users] soci::values::size()
Ricardo Fabiano de Andrade
2013-03-25 21:53:08 UTC
Permalink
Hi all,

I missed the member function size() in the soci::value class.
Is there any special reason to not include it in the public interface?

Thank you,
Ricardo Andrade
Mateusz Loskot
2013-03-26 11:17:04 UTC
Permalink
On 25 March 2013 21:53, Ricardo Fabiano de Andrade
Post by Ricardo Fabiano de Andrade
Hi all,
I missed the member function size() in the soci::value class.
Is there any special reason to not include it in the public interface?
Ricardo, I'm not aware of any reasons.
Perhaps you are the first who need to query size of values
(we seem to favour lean approach to interfaces ;-))

Are you thinking about size relating to the pos as follows
0 =< pos < values::size() ?

Feel free to submit pull request against develop branch
(with new related test case, please).

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Ricardo Fabiano de Andrade
2013-03-26 12:44:49 UTC
Permalink
Will do.
Thanks!
Post by Mateusz Loskot
On 25 March 2013 21:53, Ricardo Fabiano de Andrade
Post by Ricardo Fabiano de Andrade
Hi all,
I missed the member function size() in the soci::value class.
Is there any special reason to not include it in the public interface?
Ricardo, I'm not aware of any reasons.
Perhaps you are the first who need to query size of values
(we seem to favour lean approach to interfaces ;-))
Are you thinking about size relating to the pos as follows
0 =< pos < values::size() ?
Feel free to submit pull request against develop branch
(with new related test case, please).
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
Mateusz Loskot
2013-03-26 14:13:39 UTC
Permalink
On 26 March 2013 12:44, Ricardo Fabiano de Andrade
Post by Ricardo Fabiano de Andrade
Will do.
Thanks!
Awesome!

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

Loading...