Boost C++ Libraries: Ticket #10536: call to 'begin(...pull_coroutine< R > & c)' is ambiguous https://svn.boost.org/trac10/ticket/10536 <p> The test program (add t to htps) htps://github.com/nasailja/pamhd/blob/master/tests/volume_range/number_of_samples.cpp which uses htps://github.com/nasailja/pamhd/blob/master/source/volume_range.hpp which itself uses boost::coroutine stopped compiling when I upgraded Xcode. g++ --version prints: </p> <pre class="wiki">Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix </pre><p> and compile fails with: </p> <pre class="wiki">tests/volume_range/number_of_samples.cpp:56:24: error: call to 'begin' is ambiguous for (const auto&amp; coord: volume_range(start, end, samples_per_dim)) { ^ tests/volume_range/number_of_samples.cpp:81:2: note: in instantiation of function template specialization 'check_number_of_samples&lt;double, 10&gt;' requested here check_number_of_samples&lt;double, 10&gt;(1); ^ /Users/iljah/include/boost/coroutine/asymmetric_coroutine.hpp:2210:1: note: candidate function [with R = std::__1::array&lt;double, 10&gt;] begin( pull_coroutine&lt; R &gt; &amp; c) ^ /Users/iljah/include/boost/coroutine/asymmetric_coroutine.hpp:2245:1: note: candidate function [with R = std::__1::array&lt;double, 10&gt;] begin( boost::coroutines::pull_coroutine&lt; R &gt; &amp; c) ^ tests/volume_range/number_of_samples.cpp:56:24: note: when looking up 'begin' function for range expression of type 'boost::coroutines::pull_coroutine&lt;std::__1::array&lt;double, 10&gt; &gt;' for (const auto&amp; coord: volume_range(start, end, samples_per_dim)) { </pre><p> If I comment out in file coroutine/asymmetric_coroutine.hpp the section behind #if defined(<span class="underline">clang</span>) everything works again. No idea if this is a user error or coroutine bug. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10536 Trac 1.4.3 olli Wed, 24 Sep 2014 19:04:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10536#comment:1 https://svn.boost.org/trac10/ticket/10536#comment:1 <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> already fixed in branch develop ,thx </p> Ticket