Boost C++ Libraries: Ticket #6880: Boost Polygon c++11 problem https://svn.boost.org/trac10/ticket/6880 <p> In transform_detail.hpp of boost polygon line 257 you write </p> <p> int this_array<a class="changeset" href="https://svn.boost.org/trac10/changeset/3" title="Tweak disclaimer text">[3]</a> = {horizontalDir.to_int(), </p> <blockquote> <p> verticalDir.to_int(), proximalDir.to_int()}; </p> </blockquote> <p> where horizontalDir is a direction_3d defined in isotropy.hpp and the to_int() function is defined in line 529 as inline unsigned int to_int(void) const { return val_; } </p> <p> returning an unsigned int. Using the uniform initialization with {} results in narrowing which is imho not allowed in c++11. At least the llvm clang 3.1 compiler complains. </p> <p> Possible fixes afaik to_int() could return int or array should be defined as unsigned int </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6880 Trac 1.4.3 anonymous Tue, 18 Sep 2012 20:05:41 GMT <link>https://svn.boost.org/trac10/ticket/6880#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6880#comment:1</guid> <description> <p> Will be fixed in Boost 1.52. </p> <p> Andrii Sydorchuk </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Lucanus Simonson</dc:creator> <pubDate>Wed, 19 Sep 2012 00:30:25 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6880#comment:2 https://svn.boost.org/trac10/ticket/6880#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> Ticket