Hello,
I found something strange in rowset iterator behavior. Look at this
piece of code:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
int counter = 0;
TupleRowset::const_iterator begin, end;
begin = result.begin();
end = result.end();
for (TupleRowset::const_iterator tupleIt = begin;
tupleIt != end; ++tupleIt, ++counter)
{
if(!(counter % 1000))
std::cout << ".";
std::cout.flush();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
Where:
typedef unsigned int NodeId;
typedef unsigned int Pid;
typedef std::string Mask;
typedef int Type;
typedef int Positie;
typedef boost::optional<int> OptNodeId;
typedef boost::optional<int> OptPid;
typedef boost::optional<Mask> OptMask;
typedef boost::optional<Type> OptType;
typedef boost::optional<Positie> OptPositive;
typedef boost::tuple<OptNodeId, OptPid, OptMask, OptType, OptPositive> Tuple;
typedef soci::rowset<Tuple> TupleRowset;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The time between printing dots is not constant but increases. I don't
know why - it should be constant - can you help me?
--
Regards
Michał Nowotka
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users