Hi Freddie.
So my question is: Is there a way for us to suppress warnings from Boost
headers without affecting the warning level significantly on our own code?
Any idea is greatly appreciated. :)
In our projects (also MSVC 7.1) we prepare wrapper files for
any boost headers causing such warnings that include their
respective header file, temporarily disabling the exact warning
messages. Then all other code uses those BoostWrapper header
files instead of those in boost.
It actually turns out that not many of boost header files cause these
warnings and not many different warnings at that so this is not such
a big overehead as we first expected.
I've actually been waiting for the boost 1.34 release to retest all of
our settings and report to the mailing list every one of the warnings
in question.
In case it helps anyone I've attached a packaged up part of our
source tree containing all the current BoostWrappers headers, you
might find it useful... actually there is a tiny copyright notice at the
top of each file but I did not take the time to remove it as each file
simply follows a 'include any other needed headers, disable warnings,
include header, reenable warnings' pattern... :-) so there is actually
nothing proprietary to 'copy' from there... :-)
Hope this helps...
Best regards,
Jurko Gospodnetic
begin 666 boostWrappers.rar
M4F%R(1H'`,^0
AA
MS P)`8D10;H/!31J;\LJ&':V> C7_S1UXIV<_G6/+@)RN1&<0DUW'V_VS"MC
MW-7K9JC[*W^\&*$IVJ\2&T-X@I0[:P,L?,:53DJ<[E1TTD#1@*1\.<!PP$5
MT"A4UJV+'?Y%QSM9D?D):V'/2E)G/ZC1:+@0W.2*WKD^H*1=7*]S.$\*71+'
M^AD"G53>WJ1EF!46R79=%'C\7BI5&I)I%D)0_^3!ND9,'JRT!$H22/H-HS1M
ML(K"Q8ZBS<9DZZ%QG#BB/ ^IFW[
MAE*^#FD;1WV#9%]>=%L:M/:VP;@7)'(EDV6'D/=8MQVO\NXMUKQ*__J:OG]U
MY[RHW]508]M_-'Q!9PHH@5FQ'B.9#,Q YM[3C5SQ/4V>P^MCPF4H3B:J4IZP%-+--DQ#H6<`
M`+^(9_:I_]2WC'0@@$<`CP$``% $```"E,?[XF:2]30=-2<`( ```$)O;W-T
M5W)A<'!E*>LOJ&VG3XA7 \^I.H+^X!U[G
M8GI(!^6-HQTSHO*"E\8[N5_\.E/)^C%B&^5X(0Q[0'[JK?C\.'7():DDT)]R
MGEU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