Skip to content

Commit

Permalink
Try work-around for compiler bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Feb 2, 2020
1 parent 7c1de50 commit c20c13f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions include/tao/pq/internal/gen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ namespace tao::pq::internal
};

template< std::size_t... Ns >
using gen = make< std::make_index_sequence< ( 0 + ... + Ns ) >,
std::make_index_sequence< sizeof...( Ns ) >,
exclusive_scan_t< std::index_sequence< Ns... > > >;
struct gen2
{
using S1 = std::make_index_sequence< ( 0 + ... + Ns ) >;
using S2 = std::make_index_sequence< sizeof...( Ns ) >;
using S3 = exclusive_scan_t< std::index_sequence< Ns... > >;
using type = make< S1, S2, S3 >;
};

template< std::size_t... Ns >
using gen = typename gen2< Ns... >::type;

} // namespace tao::pq::internal

Expand Down

0 comments on commit c20c13f

Please sign in to comment.