Boost C++ Libraries: Ticket #1416: Warnings from Boost.Function need suppression. https://svn.boost.org/trac10/ticket/1416 <p> Using (in directly via Boost.Parameter?) </p> <p> sparks dozens of MSVC 4224 warnings with MSVC at level 1 </p> <p> Error Message nonstandard extension used : formal parameter 'identifier' was previously defined as a type </p> <p> The identifier was previously used as a typedef. This causes a warning under ANSI compatibility (/Za). </p> <p> Example </p> <blockquote> <p> Copy Code </p> </blockquote> <p> <em> C4224.cpp </em> compile with: /Za /W1 /LD typedef int I; void func ( int I ); <em> C4224 Please could these be suppressed (or a variable name changed to avoid this?) </em></p> <p> # pragma warning(disable : 4224) <em> nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type </em></p> <p> i:\trunk\boost/function/function_template.hpp(92) : warning C4224: nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type </p> <blockquote> <p> i:\trunk\boost/function/function_template.hpp(97) : see reference to class template instantiation 'boost::detail::function::function_invoker0&lt;<a class="missing wiki">FunctionPtr</a>,R&gt;' being compiled </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1416 Trac 1.4.3 Richard Webb <Richard.Webb@…> Mon, 03 Dec 2007 15:15:58 GMT <link>https://svn.boost.org/trac10/ticket/1416#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1416#comment:1</guid> <description> <p> (I don't know if i should add this here, or open a new bug - so tell me if i'm wrong): </p> <p> Building my project in VC8SP1 on warning level 4 results in some C4127 (conditional expression is constant) warnings from function_template.hpp: </p> <pre class="wiki">if (function_allows_small_object_optimization&lt;FunctionObj&gt;::value) ... </pre><p> The attached patch silences the warning on VC8. </p> </description> <category>Ticket</category> </item> <item> <author>Richard Webb <Richard.Webb@…></author> <pubDate>Mon, 03 Dec 2007 15:16:51 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/1416 https://svn.boost.org/trac10/ticket/1416 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">function_template.patch</span> </li> </ul> Ticket Douglas Gregor Thu, 06 Dec 2007 18:39:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1416#comment:2 https://svn.boost.org/trac10/ticket/1416#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41798" title="Disable more Visual C++ warnings in Function headers. Fixes #1416 ">[41798]</a>) Disable more Visual C++ warnings in Function headers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1416" title="#1416: Bugs: Warnings from Boost.Function need suppression. (closed: fixed)">#1416</a> </p> Ticket Eric Niebler Sun, 09 Dec 2007 02:38:17 GMT <link>https://svn.boost.org/trac10/ticket/1416#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1416#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41915" title="Merged revisions 41776-41815 via svnmerge from ...">[41915]</a>) Merged revisions 41776-41815 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41778" title="compute 'result' in to_ulong() as it is done in Boost 1.34">r41778</a> | bgubenko | 2007-12-06 02:47:52 -0800 (Thu, 06 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> compute 'result' in to_ulong() as it is done in Boost 1.34 </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41788" title="Add Google Analytics tracking code for the uploaded docs. ">r41788</a> | vladimir_prus | 2007-12-06 08:00:38 -0800 (Thu, 06 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> Add Google Analytics tracking code for the uploaded docs. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41789" title="Fix search for html files. Put packages where beta.boost.org can fetch ...">r41789</a> | vladimir_prus | 2007-12-06 08:12:01 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Fix search for html files. Put packages where beta.boost.org can fetch them. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41791" title="Fix quoting">r41791</a> | vladimir_prus | 2007-12-06 08:23:39 -0800 (Thu, 06 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fix quoting </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41795" title="Bump VC++ version check to continue applying VC-specific workaround ...">r41795</a> | dgregor | 2007-12-06 09:17:38 -0800 (Thu, 06 Dec 2007) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Bump VC++ version check to continue applying VC-specific workaround for Visual C++ 9.0. Fixes <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/1499" title="#1499: Bugs: xxx is not a member of 'boost::signals::detail::named_slot_map_iterator (reopened)">#1499</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41798" title="Disable more Visual C++ warnings in Function headers. Fixes #1416 ">r41798</a> | dgregor | 2007-12-06 10:39:06 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Disable more Visual C++ warnings in Function headers. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1416" title="#1416: Bugs: Warnings from Boost.Function need suppression. (closed: fixed)">#1416</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41801" title="- fix and close #1502 - the return types were not correct: there was ...">r41801</a> | guwi17 | 2007-12-06 11:21:31 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <ul><li>fix and close <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1502" title="#1502: Bugs: Invalid matrix_indirect / vector_indirect construction with shortcuts (closed: fixed)">#1502</a> </li><li>the return types were not correct: there was A instead of indirect_array&lt;A&gt; </li></ul><p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41802" title="Workaround for MPICH to properly deal with SEEK_* constants. Fixes #1486 ">r41802</a> | dgregor | 2007-12-06 11:22:06 -0800 (Thu, 06 Dec 2007) | 4 lines </p> </blockquote> <p> </p> <blockquote> <p> Workaround for MPICH to properly deal with SEEK_* constants. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1486" title="#1486: Patches: SEEK_* defined, but shouldn't be for MPICH2 (closed: fixed)">#1486</a> </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41805" title="annotates on msvc 7.1 overload selection bug in function_types example ">r41805</a> | t_schwinger | 2007-12-06 13:25:10 -0800 (Thu, 06 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> annotates on msvc 7.1 overload selection bug in function_types example </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Douglas Gregor</dc:creator> <pubDate>Fri, 14 Dec 2007 14:48:15 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1416#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1416#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/42031" title="Merged fixes for Function, Signals, and MPI from trunk. See #1499, see ...">[42031]</a>) Merged fixes for Function, Signals, and MPI from trunk. See <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/1499" title="#1499: Bugs: xxx is not a member of 'boost::signals::detail::named_slot_map_iterator (reopened)">#1499</a>, see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1416" title="#1416: Bugs: Warnings from Boost.Function need suppression. (closed: fixed)">#1416</a>, see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1486" title="#1486: Patches: SEEK_* defined, but shouldn't be for MPICH2 (closed: fixed)">#1486</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>