-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2041 from STEllAR-GROUP/fixing_2035
Changing future_iterator_traits to support pointers
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2016 Hadrian G. (a.k.a. Neolander) | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// This compile-only test case verifies that #2035 remains fixed | ||
|
||
#include <hpx/config.hpp> | ||
|
||
#if defined(HPX_HAVE_CXX11_STD_ARRAY) | ||
#include <hpx/hpx_main.hpp> | ||
#include <hpx/include/future.hpp> | ||
#include <hpx/lcos/wait_all.hpp> | ||
|
||
#include <array> | ||
|
||
int main() | ||
{ | ||
std::array<hpx::shared_future<int>, 1> future_array | ||
{{ hpx::make_ready_future(0) }}; | ||
|
||
hpx::wait_all(future_array.cbegin(), future_array.cend()); | ||
|
||
return 0; | ||
} | ||
#endif |