|
Boost Users : |
From: Jurko Gospodnetic (jurko_for_boost_at_[hidden])
Date: 2006-08-15 12:25:49
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<P``#0````````"7!'0@@$P`EP$``&4$```"[2LP`6:2]30=
M-2P`( ```$)O;W-T5W)A<'!E<G-<06QG;W)I=&AM7%-T<FEN9UQC87-E7V-O
M;G8N:'!PIQ_at_O`D7A--D);A#5=7B*N$(F"]WE_-D-F=7$;+K$BR! %WGW^>AA
MS P)`8D10;H/!31J;\LJ&':V> C7_S1UXIV<_G6/+@)RN1&<0DUW'V_VS"MC
MW-7K9JC[*W^\&*$IVJ\2&T-X_at_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<FLJ=^0A1-@;:/!=(ZJW-6G_at_NZ&^^'9L>/ ^IFW[
MAE*^#FD;1WV#9%]>=%L:M/:VP;@7)'(EDV6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S7'-I9VYA
M;"YH<'"G&"\"1>$TV0EN$-5U>(JX0B8+W>7\V0V9U<1LNL2+($ 7>??YZ&',
M# D!B1%!N@\%-&K;[TCGTJR;>@,Y6PA\-_at_F)GJ84HTS/#[G:Q>$LU/ XA3_at_0
MZ #9E6"!3D$4N(&%,J+&EC+>!@0P%H6WO?A8AM+>HY7Y8I!D5& U44)-I_at_UO
MGA0%W[@"[HW'R0J7VS+NDT*&/8M U<E\:C+P^9L/?1VYQZR(7MI/7^8?*H2#
MV*I'X$]&BIK+73'\;]H'YN>N<1T,M5N^W3) [JLI*N#U*LH_at_N-=+6SZ):!9"
M!0U2('&]!3SA2"+^62LC"9*B/Z,.S,=M1<N2/=PBFQ/7?=K4E4_ 2J1)<&%<
MY+TL_G$JD<9&'Y8AA31-]_O;.PI'<,LPG<2UU?J:[[6YS#0;<',%]'5-M#$@
MMTE;@P4,H3=OS,EIQ;NXJS'@9#<9Y CDQ!3?^TD70=P_B1DL0T]2Z^>,3^8$
M23,E5G)M]JW<C/IV'LVX(:Y%WL(K[EJ!;3$Z%8Q9QFB/^1]ILYT9Q@``OXAG
M]JG_U!+R=."0,@````````````(`````6I(/-10P#0`0````0F]O<W17<F%P
0<&5R<P"P`C=8Q#U[`$ '````
`
end
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net