[ https://issues.apache.org/jira/browse/PROTON-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185831#comment-15185831 ]
Chuck Rolke commented on PROTON-1138: ------------------------------------- The last commit with: {noformat} - template<class T> data& copy(T &t) { clear(); encoder() << t; return *this; } + template<class T> typename enable_amqp_type<T, data>::type& copy(T &t) { + clear(); encoder() << t; return *this; + } {noformat} causes Windows (VS2008, x64) warning {noformat} 34>d:\users\git\qpid-proton\proton-c\bindings\cpp\include\proton\data.hpp(50) : warning C4717: 'proton::data::copy<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,proton::value> const >' : recursive on all control paths, function will cause runtime stack overflow {noformat} > Assorted C++ API cleanups > ------------------------- > > Key: PROTON-1138 > URL: https://issues.apache.org/jira/browse/PROTON-1138 > Project: Qpid Proton > Issue Type: Improvement > Components: cpp-binding > Affects Versions: 0.13.0 > Reporter: Justin Ross > Assignee: Justin Ross > Fix For: 0.13.0 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)