Boost C++ Libraries: Ticket #8806: compilation error for operations on PolygonSet with double numbers https://svn.boost.org/trac10/ticket/8806 <p> I downloaded "polygon_set_usage.cpp" from the main webpage of Polygon library. I manually replaced all the int type in that file with double. The file is compiled in Linux using the simple command: c++ polygon_set_usage.cpp -o test_polygon. Then the compiler issues a dozen of error messages. </p> <p> The example file with all int changed to double is attached with this ticket. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8806 Trac 1.4.3 Zhengdong Zhang <zhangzdfaing@…> Wed, 10 Jul 2013 03:14:20 GMT attachment set https://svn.boost.org/trac10/ticket/8806 https://svn.boost.org/trac10/ticket/8806 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">polygon_set_usage.cpp</span> </li> </ul> Ticket Andrii Sydorchuk Wed, 06 Nov 2013 23:20:25 GMT owner, status changed https://svn.boost.org/trac10/ticket/8806#comment:1 https://svn.boost.org/trac10/ticket/8806#comment:1 <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 Andrii Sydorchuk Wed, 06 Nov 2013 23:22:53 GMT <link>https://svn.boost.org/trac10/ticket/8806#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8806#comment:2</guid> <description> <p> The file doesn't compile because the return type of the main function is double. Please change it to int. </p> <p> Here is what I get while compiling the file with clang++: polygon_set_usage.cpp:13:1: error: 'main' must return 'int' </p> <p> I am going to mark this ticket as invalid. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 06 Nov 2013 23:23:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8806#comment:3 https://svn.boost.org/trac10/ticket/8806#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket anonymous Thu, 06 Feb 2014 23:41:09 GMT <link>https://svn.boost.org/trac10/ticket/8806#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8806#comment:4</guid> <description> <p> It didn't work with me using v1.49 of boost/polygon. I got compiler errors like shown below: </p> <blockquote class="citation"> <p> f:\boost\polygon\polygon_45_set_data.hpp(1502): error C2296: '%' : illegal, left operand has type 'double' </p> </blockquote> <p> However, this problem seems fixed when using the latest trunk version of boost/polygon. </p> </description> <category>Ticket</category> </item> </channel> </rss>