From 5cdbf1f4f828d5e56605b52549a1b99e292d94ca Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Wed, 21 Jan 2015 19:26:51 +0000 Subject: 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 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1653631 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/txshift.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/src/tests/txshift.cpp') diff --git a/qpid/cpp/src/tests/txshift.cpp b/qpid/cpp/src/tests/txshift.cpp index bf85bee986..6ec28c7233 100644 --- a/qpid/cpp/src/tests/txshift.cpp +++ b/qpid/cpp/src/tests/txshift.cpp @@ -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 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)); -- cgit v1.2.1