Boost C++ Libraries: Ticket #11315: Compilation warnings created by boost::polygon::operators https://svn.boost.org/trac10/ticket/11315 <p> When I compile bp_warn.cc (attached) with Clang and enable "-Wall -Werror", the compilation fails with "template argument uses unnamed type". See attached "warnings.txt" for complete output. </p> <p> This took me a little while to track down, since the error occurs on a call to "*" using primitive types (!). </p> <p> I am not sure this is really a bug in boost::polygon, and I am not sure how to fix it if it is, but I thought I would report it anyway. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11315 Trac 1.4.3 lopresti@… Sun, 17 May 2015 18:40:22 GMT attachment set https://svn.boost.org/trac10/ticket/11315 https://svn.boost.org/trac10/ticket/11315 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bp_warn.cc</span> </li> </ul> Ticket lopresti@… Sun, 17 May 2015 18:43:34 GMT attachment set https://svn.boost.org/trac10/ticket/11315 https://svn.boost.org/trac10/ticket/11315 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">warnings.txt</span> </li> </ul> <p> Output of "clang++ -Wall -Werror -I/path/to/boost-1.58 -S bp_warn.cc" </p> Ticket anonymous Wed, 10 Jun 2015 15:06:56 GMT <link>https://svn.boost.org/trac10/ticket/11315#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11315#comment:1</guid> <description> <p> I found this report looking for a similar problem with compiling <a class="missing wiki">KiCad</a> which uses the boost::polygon library. The issue / solution is that using unnamed types in a template argument was illegal using older C++ standard. Using C++0x, it is allowed. So.. you can compile this without warning / error by adding -std=C++0x to the clang++ call. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 01 Jul 2015 17:33:16 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/11315#comment:2 https://svn.boost.org/trac10/ticket/11315#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Lucanus Simonson</span> to <span class="trac-author">Andrii Sydorchuk</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket