Boost C++ Libraries: Ticket #771: How to avoid compilation warning? https://svn.boost.org/trac10/ticket/771 <pre class="wiki">Hi, We use the boost version 1.33.1 , which is compiled with STLport. We get the annoyed compilation warning on the spirit/utility/impl/chset/range_run.ipp: &gt; more t.cpp #include "boost/spirit/utility/distinct.hpp" &gt; g++ -I&lt;path_to_STLport&gt;/5.0.1/stlport - I&lt;path_to_boost&gt;/1.33.1_with_stlport_5.0.1/include -c t.cpp /p/dt/cad/i386_linux26/STLport/5.0.1/stlport/stl/_algo base.h: In function `const _Tp&amp; stlp_std::min(const _Tp&amp;, const _Tp&amp;) [with _Tp = wchar_t]': /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :69: instantiated from `void boost::spirit::utility::impl::range&lt;CharT&gt;::merge (const boost::spirit::utility::impl::range&lt;CharT&gt;&amp;) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :109: instantiated from `void boost::spirit::utility::impl::range_run&lt;CharT&gt;::merge (typename stlp_std::vector&lt;boost::spirit::utility::impl::range&lt;C harT&gt;, stlp_std::allocator&lt;boost::spirit::utility::impl::rang e&lt;CharT&gt; &gt; &gt;::iterator, const boost::spirit::utility::impl::range&lt;CharT&gt;&amp;) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/range_run.ipp :137: instantiated from `void boost::spirit::utility::impl::range_run&lt;CharT&gt;::set (const boost::spirit::utility::impl::range&lt;CharT&gt;&amp;) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset/basic_chset.i pp:49: instantiated from `void boost::spirit::basic_chset&lt;CharT&gt;::set(CharT) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/impl/chset.ipp:117: instantiated from `boost::spirit::chset&lt;CharT&gt;::chset (CharT) [with CharT = wchar_t]' /p/dt/cad/i386_linux26/boost/1.33.1_with_stlport_5.0.1 /include/boost/spirit/utility/chset.hpp:132: instantiated from here /p/dt/cad/i386_linux26/STLport/5.0.1/stlport/stl/_algo base.h:121: warning: returning reference to temporary Is it possible to avoid or to suppress this warning? Thanks, Genia </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/771 Trac 1.4.3 Joel de Guzman Wed, 08 Nov 2006 22:37:16 GMT <link>https://svn.boost.org/trac10/ticket/771#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/771#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=237817 Isn't this an STLport problem? The error seems to point to their header files. Anyway, The proper forum to post the problem to is Spirit's mailing list: https://lists.sourceforge.net/lists/listinfo/spirit-general I am closing this for now. If you have follow up questions, please post to the list. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 08 Nov 2006 22:41:04 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/771#comment:2 https://svn.boost.org/trac10/ticket/771#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=237817 Isn't this an STLport problem? The error seems to point to their header files. Anyway, The proper forum to post the problem to is Spirit's mailing list: https://lists.sourceforge.net/lists/listinfo/spirit-general I am closing this for now. If you have follow up questions, please post to the list. </pre> Ticket