Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
In file included from prog.cc:3:
In file included from /opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana.hpp:116:
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:82:42: error: constexpr variable 'n_groups' must be initialized by a constant expression
            static constexpr std::size_t n_groups =
                                         ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:86:44: note: in instantiation of static data member 'boost::hana::detail::group_indices<true, true, true, true>::n_groups' requested here
                detail::array<std::size_t, n_groups> sizes{}, offsets{};
                                           ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:99:42: note: in instantiation of member function 'boost::hana::detail::group_indices<true, true, true, true>::compute_info' requested here
            static constexpr auto info = compute_info();
                                         ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:127:20: note: in instantiation of template class 'boost::hana::detail::group_indices<true, true, true, true>' requested here
            return info::template finish<S>(static_cast<Xs&&>(xs),
                   ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:147:20: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::group_helper<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > >, 1, 2, 3, 4>' requested here
            return group_helper(static_cast<Xs&&>(xs),
                   ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:59:23: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::apply<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
        return Group::apply(static_cast<Xs&&>(xs),
                      ^
prog.cc:14:31: note: in instantiation of function template specialization 'boost::hana::group_t::operator()<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
    auto grouped = hana::group(
                              ^
In file included from prog.cc:3:
In file included from /opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana.hpp:116:
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:86:44: error: non-type template argument is not a constant expression
                detail::array<std::size_t, n_groups> sizes{}, offsets{};
                                           ^~~~~~~~
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:99:42: note: in instantiation of member function 'boost::hana::detail::group_indices<true, true, true, true>::compute_info' requested here
            static constexpr auto info = compute_info();
                                         ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:127:20: note: in instantiation of template class 'boost::hana::detail::group_indices<true, true, true, true>' requested here
            return info::template finish<S>(static_cast<Xs&&>(xs),
                   ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:147:20: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::group_helper<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > >, 1, 2, 3, 4>' requested here
            return group_helper(static_cast<Xs&&>(xs),
                   ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:59:23: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::apply<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
        return Group::apply(static_cast<Xs&&>(xs),
                      ^
prog.cc:14:31: note: in instantiation of function template specialization 'boost::hana::group_t::operator()<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
    auto grouped = hana::group(
                              ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:86:44: note: initializer of 'n_groups' is not a constant expression
                detail::array<std::size_t, n_groups> sizes{}, offsets{};
                                           ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:82:42: note: declared here
            static constexpr std::size_t n_groups =
                                         ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:128:42: error: non-type template argument is not a constant expression
                std::make_index_sequence<info::n_groups>{}
                                         ^~~~~~~~~~~~~~
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:147:20: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::group_helper<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > >, 1, 2, 3, 4>' requested here
            return group_helper(static_cast<Xs&&>(xs),
                   ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:59:23: note: in instantiation of function template specialization 'boost::hana::group_impl<boost::hana::tuple_tag, boost::hana::when<true> >::apply<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
        return Group::apply(static_cast<Xs&&>(xs),
                      ^
prog.cc:14:31: note: in instantiation of function template specialization 'boost::hana::group_t::operator()<boost::hana::tuple<std::__1::pair<A, B>, std::__1::pair<A, C>, std::__1::pair<B, C>, std::__1::pair<A, D>, std::__1::pair<B, D> >, boost::hana::detail::equal_by<boost::hana::_always<boost::hana::integral_constant<bool, true> > > >' requested here
    auto grouped = hana::group(
                              ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:128:42: note: initializer of 'n_groups' is not a constant expression
                std::make_index_sequence<info::n_groups>{}
                                         ^
/opt/wandbox/boost-1.64.0/clang-3.9.1/include/boost/hana/group.hpp:82:42: note: declared here
            static constexpr std::size_t n_groups =
                                         ^
3 errors generated.
Exit Code:
1