i just setup a small application where i am trying to embed MessagePack Serialisation within a DLL. But as soon as I compile my sources it gives me these warnings:
1>X:\MyProject\third-party\msgpack\msgpack\detail\cpp03_zone.hpp(164): warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
Also i got these warnings as well:
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(641): warning C4309: 'static_cast' : truncation of constant value
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(635) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_array(size_t)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(281) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_array(size_t)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\myPackets.h(21) : see reference to function template instantiation 'void msgpack::v1::type::define<const std::string,const std::string,const std::string,const std::string,const uint32_t,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void>::msgpack_pack(Packer &) const' being compiled
1> with
1> [
1> Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\myPackets.h(21) : see reference to function template instantiation 'void msgpack::v1::type::define<const std::string,const std::string,const std::string,const std::string,const uint32_t,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void>::msgpack_pack(Packer &) const' being compiled
1> with
1> [
1> Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(185) : see reference to function template instantiation 'void LoginRequest::msgpack_packmsgpack::v1::packer(Packer &) const' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(148) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::detail::packer_serializer<Stream,T>::pack(msgpack::v1::packer &,const T &)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(195) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::detail::packer_serializer<Stream,T>::pack(msgpack::v1::packer &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(195) : see reference to class template instantiation 'msgpack::v1::detail::packer_serializer<Stream,T>' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(242) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::operator <<<Stream,T>(msgpack::v1::packer &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(132) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(132) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\myModule.cpp(71) : see reference to function template instantiation 'void msgpack::v1::packmsgpack::v1::sbuffer,LoginRequest(Stream &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(645): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(679): warning C4309: 'static_cast' : truncation of constant value
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(672) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_str(size_t)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\string.hpp(48) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_str(size_t)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(242) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::operator <<(msgpack::v1::packer &,const std::string &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(283) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , A0=const std::string
1> , T=const std::string
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(283) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , A0=const std::string
1> , T=const std::string
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(683): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(687): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(838): warning C4309: 'static_cast' : truncation of constant value
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(496) : see reference to function template instantiation 'void msgpack::v1::packer::pack_imp_uint32(T)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=unsigned int
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(496) : see reference to function template instantiation 'void msgpack::v1::packer::pack_imp_uint32(T)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=unsigned int
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(482) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_unsigned_int(unsigned int)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\int.hpp(176) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_unsigned_int(unsigned int)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(845): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(850): warning C4309: 'static_cast' : truncation of constant value
1> dllmain.cpp
Hi,
i just setup a small application where i am trying to embed MessagePack Serialisation within a DLL. But as soon as I compile my sources it gives me these warnings:
1>X:\MyProject\third-party\msgpack\msgpack\detail\cpp03_zone.hpp(164): warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
Also i got these warnings as well:
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(641): warning C4309: 'static_cast' : truncation of constant value 1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(635) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_array(size_t)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(281) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_array(size_t)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\myPackets.h(21) : see reference to function template instantiation 'void msgpack::v1::type::define<const std::string,const std::string,const std::string,const std::string,const uint32_t,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void>::msgpack_pack(Packer &) const' being compiled
1> with
1> [
1> Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\myPackets.h(21) : see reference to function template instantiation 'void msgpack::v1::type::define<const std::string,const std::string,const std::string,const std::string,const uint32_t,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void,void>::msgpack_pack(Packer &) const' being compiled
1> with
1> [
1> Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(185) : see reference to function template instantiation 'void LoginRequest::msgpack_packmsgpack::v1::packer(Packer &) const' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , Packer=msgpack::v1::packermsgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(148) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::detail::packer_serializer<Stream,T>::pack(msgpack::v1::packer &,const T &)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(195) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::detail::packer_serializer<Stream,T>::pack(msgpack::v1::packer &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(195) : see reference to class template instantiation 'msgpack::v1::detail::packer_serializer<Stream,T>' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(242) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::operator <<<Stream,T>(msgpack::v1::packer &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(132) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(132) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1> X:\MyProject\myModule.cpp(71) : see reference to function template instantiation 'void msgpack::v1::packmsgpack::v1::sbuffer,LoginRequest(Stream &,const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=LoginRequest
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(645): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(679): warning C4309: 'static_cast' : truncation of constant value
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(672) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_str(size_t)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\string.hpp(48) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_str(size_t)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\object.hpp(242) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::operator <<(msgpack::v1::packer &,const std::string &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(283) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , A0=const std::string
1> , T=const std::string
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\detail\cpp03_define.hpp(283) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack(const T &)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , A0=const std::string
1> , T=const std::string
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(683): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(687): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(838): warning C4309: 'static_cast' : truncation of constant value
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(496) : see reference to function template instantiation 'void msgpack::v1::packer::pack_imp_uint32(T)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=unsigned int
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(496) : see reference to function template instantiation 'void msgpack::v1::packer::pack_imp_uint32(T)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> , T=unsigned int
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\pack.hpp(482) : while compiling class template member function 'msgpack::v1::packer &msgpack::v1::packer::pack_unsigned_int(unsigned int)'
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1> X:\MyProject\third-party\msgpack\msgpack\adaptor\int.hpp(176) : see reference to function template instantiation 'msgpack::v1::packer &msgpack::v1::packer::pack_unsigned_int(unsigned int)' being compiled
1> with
1> [
1> Stream=msgpack::v1::sbuffer
1> ]
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(845): warning C4309: 'static_cast' : truncation of constant value
1>X:\MyProject\third-party\msgpack\msgpack\pack.hpp(850): warning C4309: 'static_cast' : truncation of constant value
1> dllmain.cpp
Regards, Thomas