Boost C++ Libraries: Ticket #4383: Forward declaration of char_traits causes warning C4099 in Interprocess library when using STLPort https://svn.boost.org/trac10/ticket/4383 <p> The forward declaration of char_traits in Interprocess library (interprocess_fwd.hpp) produces warning C4099 in msvc8 with stlport-5.2.1. </p> <p> c:\test\external\boost\boost\interprocess\interprocess_fwd.hpp(50) : warning C4099: 'stlpd_std::char_traits' : type name first seen using 'class' now seen using 'struct' c:\test\external\stlport\stlport\stl\char_traits.h(204) : see declaration of 'stlpd_std::char_traits' </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4383 Trac 1.4.3 phil@… Thu, 25 Nov 2010 16:55:31 GMT <link>https://svn.boost.org/trac10/ticket/4383#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4383#comment:1</guid> <description> <p> Same issue occurs on Boost 1.35 and STLPort 5.1.5 when attempting a simple example using boost::lambda - see below: </p> <blockquote> <p> vector&lt;int&gt; a; a.push_back(1); a.push_back(2); </p> </blockquote> <blockquote> <p> for_each ( a.begin(), a.end(), cout &lt;&lt; endl &lt;&lt; _1 ); </p> </blockquote> <p> \Support Files\boost.1.35.0\boost/lambda/detail/operator_return_type_traits.hpp(62) : error C2220: warning treated as error - no 'object' file generated \Support Files\boost.1.35.0\boost/lambda/detail/operator_return_type_traits.hpp(62) : warning C4099: 'stlpd_std::complex' : type name first seen using 'struct' now seen using 'class' \Support Files\STLport-5.1.5\stlport\stl/_complex.h(47) : see declaration of 'stlpd_std::complex' \Support Files\boost.1.35.0\boost/numeric/ublas/storage.hpp(289) : warning C4100: 'i' : unreferenced formal parameter \Support Files\boost.1.35.0\boost/numeric/ublas/storage.hpp(289) : while compiling class template member function 'void boost::numeric::ublas::unbounded_array&lt;T&gt;::iterator_destroy(double *&amp;)' </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sat, 24 Dec 2011 19:15:29 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4383#comment:2 https://svn.boost.org/trac10/ticket/4383#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in trunk at revision: 76143. Added include &lt;string&gt; and avoided predeclaration </p> Ticket