Opened 11 years ago
Closed 10 years ago
#5828 closed Support Requests (invalid)
Boost Error - any.hpp - incomplete type is not allowed
Reported by: | Owned by: | nasonov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | any |
Version: | Boost 1.47.0 | Severity: | Showstopper |
Keywords: | Cc: | vijayakumarm@… |
Description
Hi,
I am trying to compile my old code in new OS ( HP-UX 11.31 Itanium version ) with combination of aCC compiler. We are using boost 1.31.0 version. We are facing the boost error during compilation. But the same error is not happening in old server. Can you please help us to fix this issue ?
"/opt/app/q1app2c4/boost-1.47.0/boost/any.hpp", line 125: error #2070:
incomplete type is not allowed
ValueType held;
detected during:
instantiation of class
"boost::any::holder<ValueType> [with ValueType=Fcif]" at line 32
instantiation of "boost::any::any(const ValueType &) [with
ValueType=Fcif]" at line 35 of "/opt/app/q1app2c4/src/share/incl/Fcif.h"
boost::any requires a complete type as the error message indicates. I can't tell you why the type is incomplete, but my best guess is that your code is incorrect and it happened to work with the old compiler because of the order in which it instantiated templates.