diff --git a/thrust/optional.h b/thrust/optional.h index 5292e8281..a3fa5b25f 100644 --- a/thrust/optional.h +++ b/thrust/optional.h @@ -2089,7 +2089,7 @@ template ())), detail::enable_if_t::value> * = nullptr> __host__ __device__ -constexpr optional optional_map_impl(Opt &&opt, F &&f) +auto optional_map_impl(Opt &&opt, F &&f) -> optional { if (opt.has_value()) { detail::invoke(std::forward(f), *std::forward(opt)); diff --git a/thrust/type_traits/integer_sequence.h b/thrust/type_traits/integer_sequence.h index e33ab9ea3..26ea54213 100644 --- a/thrust/type_traits/integer_sequence.h +++ b/thrust/type_traits/integer_sequence.h @@ -98,7 +98,7 @@ template using index_sequence = integer_sequence; #endif -#if THRUST_CPP_DIALECT >= 2014 +#if THRUST_CPP_DIALECT < 2014 /*! \cond */