Opened 8 years ago

Closed 8 years ago

#11096 closed Bugs (fixed)

libs/log/src/threadsafe_queue.cpp fails with ' The type "boost::STATIC_ASSERTION_FAILURE<0>" is incomplete. '

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Compiling libs/log/src/threadsafe_queue.cpp on Oracle Solaris Studio12.4 on Solaris x86 11.2 we see

"../boost/type_traits/type_with_alignment.hpp", line 164: Error: The type "boost::STATIC_ASSERTION_FAILURE<0>" is incomplete. "../boost/type_traits/type_with_alignment.hpp", line 176: Where: While specializing "boost::detail::type_with_alignment_imp<8>". "../boost/type_traits/type_with_alignment.hpp", line 176: Where: Specialized in boost::type_with_alignment<8>. "../boost/log/detail/threadsafe_queue.hpp", line 56: Where: Specialized in non-template code. "../boost/type_traits/type_with_alignment.hpp", line 165: Error: The type "boost::STATIC_ASSERTION_FAILURE<0>" is incomplete. "../boost/type_traits/type_with_alignment.hpp", line 176: Where: While specializing "boost::detail::type_with_alignment_imp<8>". "../boost/type_traits/type_with_alignment.hpp", line 176: Where: Specialized in boost::type_with_alignment<8>. "../boost/log/detail/threadsafe_queue.hpp", line 56: Where: Specialized in non-template code. 2 Error(s) detected.

The following change to libs/type_traits/include/boost/type_traits/type_with_alignment.hpp resolves the error.

% diff ./type_with_alignment.hpp_orig ./type_with_alignment.hpp_new 179c179 < #if defined(GNUC) ---

#if defined(GNUC)
(defined (SUNPRO_CC) && (SUNPRO_CC >= 0x5130))

Change History (1)

comment:1 by John Maddock, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the patch, applied.

Note: See TracTickets for help on using tickets.