Skip to content

Build failure of msgpack_cpp11.cpp on g++6 #422

Description

@jamessan
g++ -DHAVE_CONFIG_H -I. -I..  -I../include -pthread -DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -Wall -Wextra -Wno-mismatched-tags -Werror -g -O2 -Wformat -Werror=format-security -std=c++11 -g -c -o msgpack_cpp11.o msgpack_cpp11.cpp
In file included from ../include/msgpack/adaptor/msgpack_tuple.hpp:18:0,
                 from ../include/msgpack/type.hpp:22,
                 from ../include/msgpack/object.hpp:839,
                 from ../include/msgpack.hpp:10,
                 from msgpack_cpp11.cpp:1:
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp: In instantiation of 'static msgpack::v1::type::tuple<T, Args ...> msgpack::v1::MsgpackTupleAsImpl<T, Args>::as(const msgpack::v1::object&) [with T = no_def_con_composite; Args = {}]':
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:161:47:   required from 'static msgpack::v1::type::tuple<Args ...> msgpack::v1::MsgpackTupleAs<Args>::as(const msgpack::v1::object&) [with Args = {no_def_con_composite}]'
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:154:40:   required from 'static msgpack::v1::type::tuple<T, Args ...> msgpack::v1::MsgpackTupleAsImpl<T, Args>::as(const msgpack::v1::object&) [with T = no_def_con; Args = {no_def_con_composite}]'
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:161:47:   required from 'static msgpack::v1::type::tuple<Args ...> msgpack::v1::MsgpackTupleAs<Args>::as(const msgpack::v1::object&) [with Args = {no_def_con, no_def_con_composite}]'
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:154:40:   required from 'static msgpack::v1::type::tuple<T, Args ...> msgpack::v1::MsgpackTupleAsImpl<T, Args>::as(const msgpack::v1::object&) [with T = no_def_con; Args = {no_def_con, no_def_con_composite}]'
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:161:47:   required from 'static msgpack::v1::type::tuple<Args ...> msgpack::v1::MsgpackTupleAs<Args>::as(const msgpack::v1::object&) [with Args = {no_def_con, no_def_con, no_def_con_composite}]'
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:207:43:   required from 'msgpack::v1::type::tuple<Args ...> msgpack::v1::adaptor::as<msgpack::v1::type::tuple<Args ...>, typename std::enable_if<msgpack::v1::detail::all_of_imp<msgpack::v1::has_as<Args>::value ...>::value>::type>::operator()(const msgpack::v1::object&) const [with Args = {no_def_con, no_def_con, no_def_con_composite}; typename std::enable_if<msgpack::v1::detail::all_of_imp<msgpack::v1::has_as<Args>::value ...>::value>::type = void]'
../include/msgpack/object.hpp:559:37:   required from 'typename std::enable_if<msgpack::v1::has_as<T>::value, T>::type msgpack::v1::object::as() const [with T = msgpack::v1::type::tuple<no_def_con, no_def_con, no_def_con_composite>; typename std::enable_if<msgpack::v1::has_as<T>::value, T>::type = msgpack::v1::type::tuple<no_def_con, no_def_con, no_def_con_composite>]'
msgpack_cpp11.cpp:504:92:   required from here
../include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp:154:43: error: could not convert 'msgpack::v1::type::tuple_cat(Tuples&& ...) [with Tuples = {msgpack::v1::type::tuple<no_def_con_composite>, msgpack::v1::type::tuple<>}; decltype (std::tuple_cat((forward<typename std::remove_reference<Tuples>::type::base>)(msgpack::v1::type::tuple_cat::args)...)) = std::tuple<no_def_con_composite>; typename std::remove_reference<Tuples>::type::base = <type error>](msgpack::v1::MsgpackTupleAs<>::as((* & o)))' from 'std::__tuple_cat_result<std::tuple<no_def_con_composite>, std::tuple<> >::__type {aka std::tuple<no_def_con_composite>}' to 'msgpack::v1::type::tuple<no_def_con_composite>'
             MsgpackTupleAs<Args...>::as(o));
                                           ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions