qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcpie...@apache.org
Subject svn commit: r1653631 - /qpid/trunk/qpid/cpp/src/tests/txshift.cpp
Date Wed, 21 Jan 2015 19:26:51 GMT
Author: mcpierce
Date: Wed Jan 21 19:26:51 2015
New Revision: 1653631

URL: http://svn.apache.org/r1653631
Log:
txshift: switch to uint for workers

workaround missing size_t implementation of
po::value_semantic* create_value(T& val, const std::string& arg)
as it would conflict with when size_t == unsigned int even when
it would help for size_t == unsigned long

fixes https://issues.apache.org/jira/browse/QPID-6135

Contributed by Dan Horaz <dan@danny.cz>

Modified:
    qpid/trunk/qpid/cpp/src/tests/txshift.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/txshift.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/txshift.cpp?rev=1653631&r1=1653630&r2=1653631&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/txshift.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/txshift.cpp Wed Jan 21 19:26:51 2015
@@ -40,7 +40,7 @@ namespace tests {
 struct Args : public qpid::TestOptions
 {
     std::string workQueue;
-    size_t workers;
+    uint workers;
 
     Args() : workQueue("txshift-control"), workers(1)
     {
@@ -178,7 +178,7 @@ int main(int argc, char** argv)
             worker.run();
         } else {
             boost::ptr_vector<Worker> workers;
-            for (size_t i = 0; i < opts.workers; i++) {
+            for (uint i = 0; i < opts.workers; i++) {
                 workers.push_back(new Worker(connection, opts.workQueue));
             }
             std::for_each(workers.begin(), workers.end(), boost::bind(&Worker::start,
_1));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message