Boost C++ Libraries: Ticket #10341: has_new_operator.hpp build failure https://svn.boost.org/trac10/ticket/10341 <p> Hi </p> <p> I am trying to upgrade the version of boost from 1.42 to 1.55 in our product. After replacing with new boost source,i tried compiling the product and it throws below errors : </p> <p> boost/type_traits/has_new_operator.hpp(132) : see reference to class template instantiation boost::detail::has_new_operator_impl&lt;T&gt;' being compiled </p> <p> boost/type_traits/has_new_operator.hpp(45) : error C2064: term does not evaluate to a function taking 1 arguments </p> <p> boost/type_traits/has_new_operator.hpp(56) : error C2064: term does not evaluate to a function taking 1 arguments </p> <p> boost/type_traits/has_new_operator.hpp(68) : error C2064: term does not evaluate to a function taking 1 arguments </p> <p> boost/type_traits/has_new_operator.hpp(68) : error C2059: syntax err or : ']' </p> <p> boost/type_traits/has_new_operator.hpp(70) : error C2059: syntax err or : ')' </p> <p> boost/type_traits/has_new_operator.hpp(79) : error C2064: term does not evaluate to a function taking 1 arguments </p> <p> boost/type_traits/has_new_operator.hpp(79) : error C2059: syntax err or : ']' </p> <p> boost/type_traits/has_new_operator.hpp(81) : error C2059: syntax err or : ')' </p> <p> boost/type_traits/has_new_operator.hpp(90) : error C2064: term does not evaluate to a function taking 1 arguments </p> <p> boost/type_traits/has_new_operator.hpp(90) : error C2059: syntax err or : ']' </p> <p> boost/type_traits/has_new_operator.hpp(92) : error C2059: syntax err or : ')' </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's1' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's2' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's3' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's4' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's5' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(122) : error C2065: 's6' : un declared identifier </p> <p> boost/type_traits/has_new_operator.hpp(132) : error C2143: syntax er ror : missing ';' before '}' </p> <p> boost/type_traits/has_new_operator.hpp(132) : fatal error C1004: une xpected end-of-file found </p> <p> Could you please help me in resolving the bugs </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10341 Trac 1.4.3 anonymous Mon, 11 Aug 2014 12:42:02 GMT version changed https://svn.boost.org/trac10/ticket/10341#comment:1 https://svn.boost.org/trac10/ticket/10341#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.54.0</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> Ticket Antony Polukhin Fri, 22 Aug 2014 13:56:37 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10341#comment:2 https://svn.boost.org/trac10/ticket/10341#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">type_traits</span> </li> </ul> Ticket John Maddock Fri, 22 Aug 2014 18:13:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10341#comment:3 https://svn.boost.org/trac10/ticket/10341#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> I suspect you have "new" defined as a macro. </p> <p> This fix: <a class="ext-link" href="https://github.com/boostorg/type_traits/commit/954cdb5e46cddfb56dc90717d4a2fbd3de7f6ed7"><span class="icon">​</span>https://github.com/boostorg/type_traits/commit/954cdb5e46cddfb56dc90717d4a2fbd3de7f6ed7</a> should fix the issue and is present in Boost-1.56. </p> <p> Please reopen if this is not the case. </p> Ticket