Boost C++ Libraries: Ticket #10033: scale_down on rectangle does not compile https://svn.boost.org/trac10/ticket/10033 <p> I get a compile error when calling scale_down on a rectangle: eg: </p> <pre class="wiki">rectangle_data&lt;int&gt; r; scale_down( r, 2 ); </pre><pre class="wiki">/Users/schou/frameworks/boost_1_55_0/boost/polygon/rectangle_concept.hpp:984:25: error: no matching function for call to 'scale_down' vertical(rectangle, scale_down(vertical(rectangle), factor)); ^~~~~~~~~~ /Users/schou/frameworks/boost_1_55_0/boost/polygon/interval_concept.hpp:386:10: note: candidate function [with IntervalType = boost::polygon::interval_data&lt;int&gt;] not viable: expects an l-value for 1st argument &gt;::type&amp; scale_down( ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/point_concept.hpp:395:3: note: candidate template ignored: disabled by 'enable_if' [with PointType = boost::polygon::interval_data&lt;int&gt;, CType = unsigned long long] typename gtl_and&lt; ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/rectangle_concept.hpp:979:22: note: candidate template ignored: disabled by 'enable_if' [with rectangle_type = boost::polygon::interval_data&lt;int&gt;] typename enable_if&lt;typename gtl_and&lt;y_r_scale_down, typename is_mutable_rectangle_concept&lt;typename geo... ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/segment_concept.hpp:437:3: note: candidate template ignored: disabled by 'enable_if' [with Segment = boost::polygon::interval_data&lt;int&gt;] typename gtl_and&lt; ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_traits.hpp:735:5: note: candidate template ignored: disabled by 'enable_if' [with polygon_type = boost::polygon::interval_data&lt;int&gt;] typename gtl_and&lt; typename is_any_mutable_polygon_without_holes_type&lt;polygon_type&gt;::type, ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_traits.hpp:870:5: note: candidate template ignored: disabled by 'enable_if' [with polygon_type = boost::polygon::interval_data&lt;int&gt;] typename gtl_and&lt; typename is_any_mutable_polygon_without_holes_type&lt;polygon_type&gt;::type, ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_traits.hpp:889:23: note: candidate template ignored: disabled by 'enable_if' [with T = boost::polygon::interval_data&lt;int&gt;] typename enable_if&lt; typename is_any_mutable_polygon_with_holes_type&lt;T&gt;::type, T&gt;::type &amp; ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_90_set_concept.hpp:437:23: note: candidate template ignored: disabled by 'enable_if' [with polygon_set_type = boost::polygon::interval_data&lt;int&gt;] typename enable_if&lt; typename is_mutable_polygon_90_set_type&lt;polygon_set_type&gt;::type, ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_45_set_concept.hpp:248:23: note: candidate template ignored: disabled by 'enable_if' [with polygon_set_type = boost::polygon::interval_data&lt;int&gt;] typename enable_if&lt; typename is_mutable_polygon_45_set_type&lt;polygon_set_type&gt;::type, ^ /Users/schou/frameworks/boost_1_55_0/boost/polygon/polygon_set_concept.hpp:237:23: note: candidate template ignored: disabled by 'enable_if' [with polygon_set_type = boost::polygon::interval_data&lt;int&gt;] typename enable_if&lt; typename is_mutable_polygon_set_type&lt;polygon_set_type&gt;::type, ^ 2 errors generated. </pre><p> I am compiling on mac osx maverics. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10033 Trac 1.4.3 Andrii Sydorchuk Sat, 10 May 2014 23:10:38 GMT owner changed https://svn.boost.org/trac10/ticket/10033#comment:1 https://svn.boost.org/trac10/ticket/10033#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> </ul> Ticket Andrii Sydorchuk Sat, 10 May 2014 23:11:59 GMT <link>https://svn.boost.org/trac10/ticket/10033#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10033#comment:2</guid> <description> <p> Jakob, thank you for the report. Can you also provide the compiler you are using and the command prompt? </p> </description> <category>Ticket</category> </item> <item> <author>Jakob Schou Jensen <jakob.schou.jensen@…></author> <pubDate>Sun, 11 May 2014 06:46:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10033#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10033#comment:3</guid> <description> <p> The compiler is: </p> <pre class="wiki"> &gt; clang++ --version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix </pre><p> I compile this main.cpp file: </p> <pre class="wiki"> #include &lt;boost/polygon/polygon.hpp&gt; using namespace boost::polygon; int main() { rectangle_data&lt;int&gt; r; scale_down( r, 2 ); return 0; } </pre><p> With this command line: </p> <pre class="wiki"> &gt; clang++ -I &lt;path to boost&gt;/boost_1_55_0/ main.cpp </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 21 May 2014 21:37:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10033#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10033#comment:4</guid> <description> <p> I've fixed scale_up and scale_down methods for rectangle concept. Please find the patch attached or use the latest master branch of Polygon repo on github: <a class="ext-link" href="https://github.com/boostorg/polygon"><span class="icon">​</span>https://github.com/boostorg/polygon</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrii Sydorchuk</dc:creator> <pubDate>Wed, 21 May 2014 21:37:23 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/10033 https://svn.boost.org/trac10/ticket/10033 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">10033.patch</span> </li> </ul> Ticket Andrii Sydorchuk Wed, 21 May 2014 21:38:20 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/10033#comment:5 https://svn.boost.org/trac10/ticket/10033#comment:5 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket Jakob Schou Jensen <jakob.schou.jensen@…> Thu, 22 May 2014 07:46:08 GMT <link>https://svn.boost.org/trac10/ticket/10033#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10033#comment:6</guid> <description> <p> Thanks! </p> </description> <category>Ticket</category> </item> </channel> </rss>