Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from prog.cc:4:
In file included from ./tuple-cat.h:6:
./index-of-tuple.h:3:47: warning: unused parameter 'FlattenedIndex' [-Wunused-parameter]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:3:25: error: no return statement in constexpr function
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:10:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(0) == 0);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:11:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(1) == 1);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:12:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(2) == 1);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:13:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(3) == 1);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:14:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(4) == 2);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
./index-of-tuple.h:15:15: error: no matching function for call to 'index_of_tuple'
static_assert(index_of_tuple<1,3,2>(5) == 2);
^~~~~~~~~~~~~~~~~~~~~
./index-of-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_of_tuple(size_t FlattenedIndex)
^
In file included from prog.cc:4:
In file included from ./tuple-cat.h:7:
./index-into-tuple.h:3:49: warning: unused parameter 'FlattenedIndex' [-Wunused-parameter]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:3:25: error: no return statement in constexpr function
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:10:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(0) == 0);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:11:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(1) == 0);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:12:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(2) == 1);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:13:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(3) == 2);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:14:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(4) == 0);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
./index-into-tuple.h:15:15: error: no matching function for call to 'index_into_tuple'
static_assert(index_into_tuple<1,3,2>(5) == 1);
^~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <1, 3, 2>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
In file included from prog.cc:4:
./tuple-cat.h:12:30: error: no matching function for call to 'index_into_tuple'
std::tuple_element_t<index_into_tuple<Sizes...>(FlatIndices),
^~~~~~~~~~~~~~~~~~~~~~~~~~
./tuple-cat.h:34:12: note: in instantiation of function template specialization 'result_impl<3, 0, 1, std::__1::tuple<std::__1::tuple<int, double, char> &, std::__1::tuple<> &, std::__1::tuple<float> &>, 0, 1, 2, 3>' requested here
return result_impl<Sizes...>(reftuple_of_tuples, FlatIndexList{});
^
./tuple-cat.h:40:12: note: in instantiation of function template specialization 'my::tuple_cat_impl<3, 0, 1, std::__1::tuple<int, double, char> &, std::__1::tuple<> &, std::__1::tuple<float> &>' requested here
return tuple_cat_impl<std::tuple_size_v<std::decay_t<Tuples>>... >(std::forward<Tuples>(tuples)...);
^
prog.cc:11:26: note: in instantiation of function template specialization 'my::tuple_cat<std::__1::tuple<int, double, char> &, std::__1::tuple<> &, std::__1::tuple<float> &>' requested here
auto my_result = my::tuple_cat(first, second, third);
^
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <3, 0, 1>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
In file included from prog.cc:4:
./tuple-cat.h:19:18: error: no matching function for call to 'index_into_tuple'
std::get<index_into_tuple<Sizes...>(FlatIndices)>(
^~~~~~~~~~~~~~~~~~~~~~~~~~
./index-into-tuple.h:3:25: note: candidate template ignored: substitution failure [with Sizes = <3, 0, 1>]
static constexpr size_t index_into_tuple(size_t FlattenedIndex)
^
2 warnings and 16 errors generated.
Exit Code:
1