diff options
| author | Darryl L. Pierce <mcpierce@apache.org> | 2015-01-21 19:26:51 +0000 |
|---|---|---|
| committer | Darryl L. Pierce <mcpierce@apache.org> | 2015-01-21 19:26:51 +0000 |
| commit | 5cdbf1f4f828d5e56605b52549a1b99e292d94ca (patch) | |
| tree | fb0992493c67c3f8dd193b3143a60674c097c1da /qpid/cpp/src/tests/txshift.cpp | |
| parent | 23e9a05cdc97a43363a35ad848ec73a29f71c702 (diff) | |
| download | qpid-python-5cdbf1f4f828d5e56605b52549a1b99e292d94ca.tar.gz | |
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>
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1653631 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/txshift.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/txshift.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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)); |
