Boost C++ Libraries: Ticket #8500: Strange syntax error. https://svn.boost.org/trac10/ticket/8500 <p> In file container/allocator_traits.hpp (lines 213-214) was found: </p> <blockquote> <p> static void deallocate(Alloc &amp;a, pointer p, size_type n) { return a.deallocate(p, n); } </p> </blockquote> <p> The static void function has a non-void return. </p> <p> Are there any reason for this? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8500 Trac 1.4.3 hirad.asadi@… Fri, 26 Apr 2013 09:01:58 GMT <link>https://svn.boost.org/trac10/ticket/8500#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8500#comment:1</guid> <description> <p> Maybe this gives a clue: <a class="ext-link" href="http://stackoverflow.com/questions/3434803/returning-from-a-void-function-in-c"><span class="icon">​</span>http://stackoverflow.com/questions/3434803/returning-from-a-void-function-in-c</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 26 Apr 2013 09:04:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8500#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8500#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8500#comment:1" title="Comment 1">hirad.asadi@…</a>: </p> <blockquote class="citation"> <p> Maybe this gives a clue: <a class="ext-link" href="http://stackoverflow.com/questions/3434803/returning-from-a-void-function-in-c"><span class="icon">​</span>http://stackoverflow.com/questions/3434803/returning-from-a-void-function-in-c</a> </p> </blockquote> <p> But still I don't think "return" keyword is needed... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 26 Apr 2013 19:46:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8500#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8500#comment:3</guid> <description> <p> Although legal, it's a trivial change, thanks for the report. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 26 Apr 2013 19:46:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8500#comment:4 https://svn.boost.org/trac10/ticket/8500#comment:4 <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/84054" title="Fixes #8500">[84054]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8500" title="#8500: Bugs: Strange syntax error. (closed: fixed)">#8500</a> </p> Ticket