Subject: Re: [Boost-bugs] [Boost C++ Libraries] #775: Warnings on MSVC 2005
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-21 15:37:31
#775: Warnings on MSVC 2005
--------------------+-------------------------------------------------------
Reporter: e4lam | Owner: johnmaddock
Type: Bugs | Status: assigned
Milestone: | Component: config
Version: None | Severity: Problem
Resolution: None | Keywords:
--------------------+-------------------------------------------------------
Changes (by grafik):
* component: build => config
* severity: => Problem
Old description:
> {{{
> I've found that when using Boost on Microsoft Visual Studio C++ 2005, I
> get warning C4103 when
> including any boost header which end up including:
>
> abi_{prefix,suffix}.hpp
> (eg. iostreams/filter/zlib.hpp)
>
> or which manually performs a
>
> #include BOOST_ABI_{PREFIX,SUFFIX}
> (eg. regex/v4/regex_traits_defaults.hpp).
>
> An explanation for the warning can be found here:
> http://windowssdk.msdn.microsoft.com/en-us/library/t4d0762d.aspx
>
> What is happening is that config/abi/msvc_{prefix,suffix}.hpp performs
> "#pragma
> pack(push,8)" (in msvc_prefix.hpp) and then performs a "#pragma
> pack(pop)" (in msvc_suffix.hpp). This leads the compiler to think that
> the packing alignment has erroneously changed, generating unnecessary
> warnings.
> }}}
New description:
{{{
I've found that when using Boost on Microsoft Visual Studio C++ 2005, I
get warning C4103 when
including any boost header which end up including:
abi_{prefix,suffix}.hpp
(eg. iostreams/filter/zlib.hpp)
or which manually performs a
#include BOOST_ABI_{PREFIX,SUFFIX}
(eg. regex/v4/regex_traits_defaults.hpp).
An explanation for the warning can be found here:
http://windowssdk.msdn.microsoft.com/en-us/library/t4d0762d.aspx
What is happening is that config/abi/msvc_{prefix,suffix}.hpp performs
"#pragma
pack(push,8)" (in msvc_prefix.hpp) and then performs a "#pragma pack(pop)"
(in msvc_suffix.hpp). This leads the compiler to think that the packing
alignment has erroneously changed, generating unnecessary warnings.
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/775#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC