Opened 8 years ago

Closed 8 years ago

#10341 closed Bugs (duplicate)

has_new_operator.hpp build failure

Reported by: Aamani kalepi Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

Hi

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 :

boost/type_traits/has_new_operator.hpp(132) : see reference to class template instantiation boost::detail::has_new_operator_impl<T>' being compiled

boost/type_traits/has_new_operator.hpp(45) : error C2064: term does not evaluate to a function taking 1 arguments

boost/type_traits/has_new_operator.hpp(56) : error C2064: term does not evaluate to a function taking 1 arguments

boost/type_traits/has_new_operator.hpp(68) : error C2064: term does not evaluate to a function taking 1 arguments

boost/type_traits/has_new_operator.hpp(68) : error C2059: syntax err or : ']'

boost/type_traits/has_new_operator.hpp(70) : error C2059: syntax err or : ')'

boost/type_traits/has_new_operator.hpp(79) : error C2064: term does not evaluate to a function taking 1 arguments

boost/type_traits/has_new_operator.hpp(79) : error C2059: syntax err or : ']'

boost/type_traits/has_new_operator.hpp(81) : error C2059: syntax err or : ')'

boost/type_traits/has_new_operator.hpp(90) : error C2064: term does not evaluate to a function taking 1 arguments

boost/type_traits/has_new_operator.hpp(90) : error C2059: syntax err or : ']'

boost/type_traits/has_new_operator.hpp(92) : error C2059: syntax err or : ')'

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's1' : un declared identifier

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's2' : un declared identifier

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's3' : un declared identifier

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's4' : un declared identifier

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's5' : un declared identifier

boost/type_traits/has_new_operator.hpp(122) : error C2065: 's6' : un declared identifier

boost/type_traits/has_new_operator.hpp(132) : error C2143: syntax er ror : missing ';' before '}'

boost/type_traits/has_new_operator.hpp(132) : fatal error C1004: une xpected end-of-file found

Could you please help me in resolving the bugs

Change History (3)

comment:1 by anonymous, 8 years ago

Version: Boost 1.54.0Boost 1.55.0

comment:2 by Antony Polukhin, 8 years ago

Component: Nonetype_traits
Owner: set to John Maddock

comment:3 by John Maddock, 8 years ago

Resolution: duplicate
Status: newclosed

I suspect you have "new" defined as a macro.

This fix: https://github.com/boostorg/type_traits/commit/954cdb5e46cddfb56dc90717d4a2fbd3de7f6ed7 should fix the issue and is present in Boost-1.56.

Please reopen if this is not the case.

Note: See TracTickets for help on using tickets.