[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users] [boost::any] Newbie Question About Compiler Warning
From:       "Richard Ward" <richard_ward () symantec ! com>
Date:       2006-04-28 14:40:47
Message-ID: 1BFF6AEA3B1E534FAEC9A0F5BB9E378903BF5949 () rosxchcln6 ! enterprise ! veritas ! com
[Download RAW message or body]

Hello,

I'm a new user to boost and have a question about a compiler warning I'm
seeing.  I'm currently using just the boost::any type and on HPUX v11.00
PA with aCC: HP ANSI C++ B3910B A.03.56 I'm seeing the following
warning:

Warning (anachronism) 823: 
"/Components/dev/Boost/v1.33.1/boost/type_traits/is_reference.hpp", line
38 
# Redundant preprocessing concatenation operation results in two valid
preprocessing tokens. Depending on this implementation defined behavior
will result in non-portable code.
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_reference,T,false)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Here's the compile line that generated the warning:

aCC -AA -DACE_HAS_STANDARD_CPP_LIBRARY=1 -D_RWSTD_MULTI_THREAD
-D_REENTRANT
-U_INCLUDE__STDC_A1_SOURCE -DACE_HAS_THREADS -D_POSIX_C_SOURCE=199506L
-DHPUX_VERS=1100
-DACE_LACKS_PRAGMA_ONCE +W302 +W930 +W849 -mt +DAportable 
+Z -D_LARGEFILE64_SOURCE=1
+O3 +Osize
-DACE_NDEBUG -DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__
-D__UNIX
-c -o .objects/HP-UX.B.11.00_RISC_aCC.A.03.37/release//LicAgentSvc.o 
LicAgentSvc.cpp

Because the boost::any header is included in one of my headers, I see
this warning hundreds of times.  While I could just suppress it I prefer
to first try to figure out what the issue is.  I dislike suppressing
warnings I don't understand.

Does anyone know what this warning means and/or have any suggestions for
what to do about it?

Thanks,

Richard J. Ward
Symantec Corp.


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6617.47">
<TITLE>[boost::any] Newbie Question About Compiler Warning on HPUX with \
boost::any</TITLE> </HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT FACE="Times New Roman">Hello,<BR>
<BR>
I'm a new user to boost and ha</FONT><FONT FACE="Times New Roman">ve a question about \
a compiler warning I'm seeing.&nbsp; I'm currently using just the boost::any type and \
on HPUX v11.00 PA with aCC: HP ANSI C&#43&#43 B3910B A.03.56 I'm seeing the following \
warning:<BR> <BR>
Warning (anachronism) 823:<BR>
&quot;/Components/dev/Boost/v1.33.1/boost</FONT><FONT FACE="Times New \
Roman">/</FONT><FONT FACE="Times New Roman">type_traits/is_reference.hpp&quot;, line \
38<BR> # Redundant preprocessing concatenation operation results in two valid \
preprocessing tokens. Depending on this implementation defined behavior will result \
in non-portable code.<BR> BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_refere</FONT><FONT \
FACE="Times New Roman">n</FONT><FONT FACE="Times New Roman">ce,T,false)<BR> \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^<BR> <BR>
Here's the compile line that generated the warning:<BR>
<BR>
aCC -AA -DACE_HAS_STANDARD_CPP_LIBRARY=1 -D_RWSTD_MULTI_THREAD -D_REENTRANT<BR>
-U_INCLUDE__STDC_A1_SOURCE -DACE_HAS_THREADS -D_POSIX_C_SOURCE=199506L \
-DHPUX_VERS=1</FONT><FONT FACE="Times New Roman">1</FONT><FONT FACE="Times New \
                Roman">00<BR>
-DACE_LACKS_PRAGMA_ONCE &#43W302 &#43W930 &#43W849 -mt &#43DAportable<BR>
&#43Z -D_LARGEFILE64_SOURCE=1<BR>
&#43O3 &#43Osize<BR>
-DACE_NDEBUG -DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -D__UNIX<BR>
-c -o .objects/HP-UX.B.11.00_RISC_aCC.A.03.37/release//LicAgentSvc.o<BR>
LicAgen</FONT><FONT FACE="Times New Roman">t</FONT><FONT FACE="Times New \
Roman">Svc.cpp<BR> <BR>
Because the boost::any header is included in one of my headers, I see this warning \
hundreds of times.&nbsp; While I could just suppress it I prefer to first try to \
figure out what the issue is.&nbsp; I dislike suppressing warnings I don't \
understand.<BR> <BR>
Does</FONT><FONT FACE="Times New Roman"></FONT> <FONT FACE="Times New Roman">anyone \
know what this warning means and/or have any suggestions for what to do about it?<BR> \
<BR> Thanks,<BR>
<BR>
</FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN \
LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Richard J. \
Ward</FONT></SPAN></P>

<P ALIGN=LEFT><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Symantec \
Corp.</FONT></SPAN></P>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic