Boost C++ Libraries: Ticket #13501: no matching function for call to 'hash_value' while compiling program with clang on osx https://svn.boost.org/trac10/ticket/13501 <p> I am getting the following error while building an external program (augustus 3.3 with CGP and sqlite support, <a class="ext-link" href="https://circleci.com/gh/bioconda/bioconda-recipes/6507"><span class="icon">​</span>https://circleci.com/gh/bioconda/bioconda-recipes/6507</a>) with clang on osx: </p> <pre class="wiki">include/boost/functional/hash/extensions.hpp:262:20: error: no matching function for call to 'hash_value' return hash_value(val); ^~~~~~~~~~ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13501 Trac 1.4.3 Daniel James Thu, 29 Mar 2018 11:32:58 GMT <link>https://svn.boost.org/trac10/ticket/13501#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13501#comment:1</guid> <description> <p> Thanks for the report. Please can you post the template instantiation info from the error message so that I can see what type this happens for? I suspect it might be <code>char16_t</code>, <code>char32_t</code>, <code>u16string</code> or <code>u32string</code>, which we added support for in 1.65.0. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 29 Mar 2018 11:35:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13501#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13501#comment:2</guid> <description> <p> Sorry, I just looked at the log on circleci, and it's <code>vector&lt;bool&gt;</code>. I'll look into it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 29 Mar 2018 13:45:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13501#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13501#comment:3</guid> <description> <p> Hi Daniel, just a heads up in case this is not due to Boost, this may be due to hardcoded Makefile errors in the external program, discussed here: <a class="ext-link" href="https://github.com/bioconda/bioconda-recipes/pull/8440"><span class="icon">​</span>https://github.com/bioconda/bioconda-recipes/pull/8440</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 29 Mar 2018 14:43:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13501#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13501#comment:4</guid> <description> <p> I suspect it's a problem with libc++'s vector&lt;bool&gt;. For libstdc++ <code>vector&lt;bool&gt;::const_iterator::reference</code> is <code>bool</code> which hash supports, I'm guessing that for libc++ it's something else which isn't supported. I don't have libc++ installed at the moment, so I can't check just yet. </p> </description> <category>Ticket</category> </item> <item> <author>marcel.bargull@…</author> <pubDate>Thu, 29 Mar 2018 15:25:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13501#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13501#comment:5</guid> <description> <p> Makes sense. I know next to nothing about libstdc++ and libc++'s implementations, but a quick search on the libstc++ <a class="missing wiki">GitHub</a> mirror supports your suspection: </p> <p> github.com/llvm-mirror/libcxx/blob/88626bf496e9a1276652790438b389e65950629f/include/vector#L2160-L2162 </p> <p> github.com/llvm-mirror/libcxx/blob/018a3d51a47f7275c59e802709104498b729522b/include/<span class="underline">bit_reference#L1092 </span></p> <p> github.com/llvm-mirror/libcxx/blob/018a3d51a47f7275c59e802709104498b729522b/include/<span class="underline">bit_reference#L124 </span></p> <p> If I read that right, then <code>__bit_const_reference</code> is the type of <code>vector&lt;bool&gt;::const_iterator::reference</code>. </p> </description> <category>Ticket</category> </item> </channel> </rss>