Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190304 (experimental)

Options
Warnings
Boost 1.69.0
C++14(GNU)
no pedantic

Author

anonymous

about 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++14
prog.cc: In function 'constexpr void loop_impl(std::integer_sequence<I, is ...>, F)':
prog.cc:64:40: warning: fold-expressions only available with -std=c++17 or -std=gnu++17
   64 |   (f(std::integral_constant<I, is>{}), ...);
      |                                        ^~~
prog.cc: In instantiation of 'make_combinations(TypeTag<Tuple>, std::index_sequence<is ...>, std::index_sequence<as ...>) [with Tuple = std::tuple<A, B, C>; long unsigned int ...is = {0}; long unsigned int ...as = {}; std::index_sequence<is ...> = std::integer_sequence<long unsigned int, 0>; std::index_sequence<as ...> = std::integer_sequence<long unsigned int>]::<lambda(auto:1)> [with auto:1 = std::integral_constant<long unsigned int, 0>]':
prog.cc:42:28:   required from 'constexpr auto make_combinations(TypeTag<Tuple>, std::index_sequence<is ...>, std::index_sequence<as ...>) [with Tuple = std::tuple<A, B, C>; long unsigned int ...is = {0}; long unsigned int ...as = {}; std::index_sequence<is ...> = std::integer_sequence<long unsigned int, 0>; std::index_sequence<as ...> = std::integer_sequence<long unsigned int>]'
prog.cc:52:22:   required by substitution of 'template<class ... Args> template<long unsigned int arity> using OfSize = decltype (make_combinations(TypeTag<std::tuple<_Tps ...> >{}, std::make_index_sequence<intpow(sizeof... (Args), arity)>{}, std::make_index_sequence<arity>{})) [with long unsigned int arity = i.std::integral_constant<long unsigned int, 0>::operator()(); Args = {A, B, C}]'
prog.cc:87:7:   required from 'main()::<lambda(auto:2)> [with auto:2 = std::integral_constant<long unsigned int, 0>]'
prog.cc:64:5:   required from 'constexpr void loop_impl(std::integer_sequence<I, is ...>, F) [with I = long unsigned int; I ...is = {0, 1, 2, 3, 4}; F = main()::<lambda(auto:2)>]'
prog.cc:69:12:   required from 'constexpr void loop(F&&) [with I = long unsigned int; I i = 5; F = main()::<lambda(auto:2)>]'
prog.cc:89:3:   required from here
prog.cc:34:42: warning: parameter 'i' set but not used [-Wunused-but-set-parameter]
   34 |   auto make_combination_at_i = [&] (auto i) {
      |                                     ~~~~~^
SIZE-0 COMBINATIONS: 
void inspect() [with T = TypeList<TypeList<> >]
SIZE-1 COMBINATIONS: 
void inspect() [with T = TypeList<TypeList<A>, TypeList<B>, TypeList<C> >]
SIZE-2 COMBINATIONS: 
void inspect() [with T = TypeList<TypeList<A, A>, TypeList<B, A>, TypeList<C, A>, TypeList<A, B>, TypeList<B, B>, TypeList<C, B>, TypeList<A, C>, TypeList<B, C>, TypeList<C, C> >]
SIZE-3 COMBINATIONS: 
void inspect() [with T = TypeList<TypeList<A, A, A>, TypeList<B, A, A>, TypeList<C, A, A>, TypeList<A, B, A>, TypeList<B, B, A>, TypeList<C, B, A>, TypeList<A, C, A>, TypeList<B, C, A>, TypeList<C, C, A>, TypeList<A, A, B>, TypeList<B, A, B>, TypeList<C, A, B>, TypeList<A, B, B>, TypeList<B, B, B>, TypeList<C, B, B>, TypeList<A, C, B>, TypeList<B, C, B>, TypeList<C, C, B>, TypeList<A, A, C>, TypeList<B, A, C>, TypeList<C, A, C>, TypeList<A, B, C>, TypeList<B, B, C>, TypeList<C, B, C>, TypeList<A, C, C>, TypeList<B, C, C>, TypeList<C, C, C> >]
SIZE-4 COMBINATIONS: 
void inspect() [with T = TypeList<TypeList<A, A, A, A>, TypeList<B, A, A, A>, TypeList<C, A, A, A>, TypeList<A, B, A, A>, TypeList<B, B, A, A>, TypeList<C, B, A, A>, TypeList<A, C, A, A>, TypeList<B, C, A, A>, TypeList<C, C, A, A>, TypeList<A, A, B, A>, TypeList<B, A, B, A>, TypeList<C, A, B, A>, TypeList<A, B, B, A>, TypeList<B, B, B, A>, TypeList<C, B, B, A>, TypeList<A, C, B, A>, TypeList<B, C, B, A>, TypeList<C, C, B, A>, TypeList<A, A, C, A>, TypeList<B, A, C, A>, TypeList<C, A, C, A>, TypeList<A, B, C, A>, TypeList<B, B, C, A>, TypeList<C, B, C, A>, TypeList<A, C, C, A>, TypeList<B, C, C, A>, TypeList<C, C, C, A>, TypeList<A, A, A, B>, TypeList<B, A, A, B>, TypeList<C, A, A, B>, TypeList<A, B, A, B>, TypeList<B, B, A, B>, TypeList<C, B, A, B>, TypeList<A, C, A, B>, TypeList<B, C, A, B>, TypeList<C, C, A, B>, TypeList<A, A, B, B>, TypeList<B, A, B, B>, TypeList<C, A, B, B>, TypeList<A, B, B, B>, TypeList<B, B, B, B>, TypeList<C, B, B, B>, TypeList<A, C, B, B>, TypeList<B, C, B, B>, TypeList<C, C, B, B>, TypeList<A, A, C, B>, TypeList<B, A, C, B>, TypeList<C, A, C, B>, TypeList<A, B, C, B>, TypeList<B, B, C, B>, TypeList<C, B, C, B>, TypeList<A, C, C, B>, TypeList<B, C, C, B>, TypeList<C, C, C, B>, TypeList<A, A, A, C>, TypeList<B, A, A, C>, TypeList<C, A, A, C>, TypeList<A, B, A, C>, TypeList<B, B, A, C>, TypeList<C, B, A, C>, TypeList<A, C, A, C>, TypeList<B, C, A, C>, TypeList<C, C, A, C>, TypeList<A, A, B, C>, TypeList<B, A, B, C>, TypeList<C, A, B, C>, TypeList<A, B, B, C>, TypeList<B, B, B, C>, TypeList<C, B, B, C>, TypeList<A, C, B, C>, TypeList<B, C, B, C>, TypeList<C, C, B, C>, TypeList<A, A, C, C>, TypeList<B, A, C, C>, TypeList<C, A, C, C>, TypeList<A, B, C, C>, TypeList<B, B, C, C>, TypeList<C, B, C, C>, TypeList<A, C, C, C>, TypeList<B, C, C, C>, TypeList<C, C, C, C> >]
Exit Code:
0