Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit a6d668e

Browse files
committed
zip_function: Add c++11 guard
1 parent a1b869b commit a6d668e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

thrust/zip_function.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#pragma once
22

3+
#include <thrust/detail/config.h>
4+
#include <thrust/detail/cpp11_required.h>
5+
#include <thrust/detail/modern_gcc_required.h>
6+
7+
#if THRUST_CPP_DIALECT >= 2011 && !defined(THRUST_LEGACY_GCC)
8+
39
#include <thrust/type_traits/integer_sequence.h>
410
#include <thrust/detail/type_deduction.h>
511

@@ -53,4 +59,5 @@ auto make_zip_function(Function&& fun) -> zip_function<typename std::decay<Funct
5359
return zip_function<func_t>(THRUST_FWD(fun));
5460
}
5561

56-
THRUST_END_NS
62+
63+
#endif

0 commit comments

Comments
 (0)