Skip to content

Commit

Permalink
refs #139 Более правильный возвращаемый тип генерирующих функций
Browse files Browse the repository at this point in the history
  • Loading branch information
izvolov committed Oct 25, 2020
1 parent 9f2cccb commit 24b7ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/burst/container/make_sequence_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ namespace
struct make_sequence_t
{
template <typename Value, typename ... Xs>
static auto apply (std::initializer_list<Value> values, Xs && ... xs)
static decltype(auto) apply (std::initializer_list<Value> values, Xs && ... xs)
{
return burst::make_sequence_container<SequenceContainer>(values, std::forward<Xs>(xs)...);
}

template <typename ... Xs>
static auto apply (Xs && ... xs)
static decltype(auto) apply (Xs && ... xs)
{
return burst::make_sequence_container<SequenceContainer>(std::forward<Xs>(xs)...);
}

template <typename Value, typename ... Xs>
static auto apply (Xs && ... xs)
static decltype(auto) apply (Xs && ... xs)
{
return burst::make_sequence_container<SequenceContainer, Value>(std::forward<Xs>(xs)...);
}
Expand Down

0 comments on commit 24b7ae8

Please sign in to comment.