From 5ffbb5fdcce82b8ba19efd9cc6a7bfcc0b62ba15 Mon Sep 17 00:00:00 2001 From: John Biddiscombe Date: Thu, 15 Nov 2018 11:49:21 +0100 Subject: [PATCH] Fix uint64_t causing compilation fail on i686 use std:: for all uint16_t and uint64_t throughout --- .../async_customization.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/resource_partitioner/async_customization.cpp b/examples/resource_partitioner/async_customization.cpp index 16aca83b5a5..e6c6a61e004 100644 --- a/examples/resource_partitioner/async_customization.cpp +++ b/examples/resource_partitioner/async_customization.cpp @@ -29,7 +29,7 @@ #include "shared_priority_queue_scheduler.hpp" // #include -#include +#include #include #include #include @@ -382,11 +382,11 @@ int test(Executor &exec) // test 3b std::cout << "============================" << std::endl; std::cout << "Test 3b : when_all(shared)" << std::endl; - future fws1 = make_ready_future(uint64_t(42)); + future fws1 = make_ready_future(std::uint64_t(42)); shared_future fws2 = make_ready_future(3.1415f).share(); // auto fws = when_all(fws1, fws2).then(exec, - [](future, shared_future>> && f) + [](future, shared_future>> && f) { auto tup = f.get(); auto cmplx = std::complex( @@ -401,13 +401,13 @@ int test(Executor &exec) // test 4a std::cout << "============================" << std::endl; std::cout << "Test 4a : dataflow()" << std::endl; - future f1 = make_ready_future(uint16_t(255)); + future f1 = make_ready_future(std::uint16_t(255)); future f2 = make_ready_future(127.890); // auto fd = dataflow(exec, - [](future && f1, future && f2) + [](future && f1, future && f2) { - auto cmplx = std::complex(f1.get(), f2.get()); + auto cmplx = std::complex(f1.get(), f2.get()); std::cout << "Inside dataflow : " << cmplx << std::endl; return cmplx; } @@ -419,13 +419,13 @@ int test(Executor &exec) // test 4b std::cout << "============================" << std::endl; std::cout << "Test 4b : dataflow(shared)" << std::endl; - future fs1 = make_ready_future(uint16_t(255)); + future fs1 = make_ready_future(std::uint16_t(255)); shared_future fs2 = make_ready_future(127.890).share(); // auto fds = dataflow(exec, - [](future && f1, shared_future && f2) + [](future && f1, shared_future && f2) { - auto cmplx = std::complex(f1.get(), f2.get()); + auto cmplx = std::complex(f1.get(), f2.get()); std::cout << "Inside dataflow(shared) : " << cmplx << std::endl; return cmplx; } @@ -453,14 +453,14 @@ namespace hpx { namespace threads { namespace executors std::cout << "Hint 2 \n"; return 0; } - int operator()(const uint16_t, const double) const { + int operator()(const std::uint16_t, const double) const { std::cout << "Hint 3 \n"; return 0; } int operator()(const util::tuple, future> &) const { return 0; } - int operator()(const util::tuple, + int operator()(const util::tuple, shared_future> &) const { return 0;