Boost C++ Libraries: Ticket #1474: VC++ 2008 seems to trigger multiple inclusion of boost::hash https://svn.boost.org/trac10/ticket/1474 <pre class="wiki">C:\temp\regression\boost\boost/test/impl/execution_monitor.ipp(792) : warning C4535: calling _set_se_translator() requires /EHa C:\temp\regression\boost\boost/tr1/functional.hpp(128) : error C2874: using-declaration causes a multiple declaration of 'boost::hash' C:\temp\regression\boost\boost/tr1/functional.hpp(124) : see declaration of 'boost::hash' </pre><p> }}} </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1474 Trac 1.4.3 Richard Webb <richard.webb@…> Sun, 09 Dec 2007 17:40:14 GMT <link>https://svn.boost.org/trac10/ticket/1474#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1474#comment:1</guid> <description> <p> I attempted to investigate this failure, and discovered that the &lt;functional&gt; shipped with VC9 actually defines a tr1::hash itself. Refer to &lt;functional&gt; line 869: </p> <pre class="wiki">namespace tr1 { // always include std::tr1::hash for unordered_map/set ... </pre><p> If i add a </p> <pre class="wiki">#if defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1500) # define BOOST_HAS_TR1_HASH #endif </pre><p> to boost\tr1\detail\config.hpp then the code </p> <pre class="wiki">#include &lt;string&gt; #include &lt;boost/tr1/functional.hpp&gt; int _tmain(int argc, _TCHAR* argv[]) { std::string foo("foo"); std::tr1::hash&lt;std::string&gt; hasher; size_t the_hash = hasher(foo); return 0; } </pre><p> Compiles correctly and calls the MS hash function. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 11 Dec 2007 18:51:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1474#comment:2 https://svn.boost.org/trac10/ticket/1474#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41976" title="Fixes #1474.">[41976]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1474" title="#1474: Bugs: VC++ 2008 seems to trigger multiple inclusion of boost::hash (closed: fixed)">#1474</a>. </p> Ticket Eric Niebler Tue, 11 Dec 2007 22:00:09 GMT <link>https://svn.boost.org/trac10/ticket/1474#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1474#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/41984" title="Merged revisions 41954-41983 via svnmerge from ...">[41984]</a>) Merged revisions 41954-41983 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41955" title="Treated Rogue Wave library concept check failure on Tru64/CXX.">r41955</a> | schoepflin | 2007-12-10 05:40:56 -0800 (Mon, 10 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Treated Rogue Wave library concept check failure on Tru64/CXX. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41956" title="SunPro 5.9 can't detect lvalue returns ">r41956</a> | dave | 2007-12-10 07:19:21 -0800 (Mon, 10 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> <a class="missing wiki">SunPro</a> 5.9 can't detect lvalue returns </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41957" title="changes msvc-7.1 to msvc-7.1* ">r41957</a> | t_schwinger | 2007-12-10 10:26:38 -0800 (Mon, 10 Dec 2007) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> changes msvc-7.1 to msvc-7.1* </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41966" title="Fixes #1454.">r41966</a> | johnmaddock | 2007-12-11 08:37:22 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1454" title="#1454: Patches: Minor compilation errors with g++ -pedantic (closed: fixed)">#1454</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41968" title="Fixes #1504.">r41968</a> | johnmaddock | 2007-12-11 09:16:21 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1504" title="#1504: Bugs: [type-traits] VC8 - C4512 warning (closed: fixed)">#1504</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41970" title="Fixes #1455.">r41970</a> | johnmaddock | 2007-12-11 09:19:03 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1455" title="#1455: Bugs: gcc 4.3.0 requires main to take 0 or 2 arguments (closed: fixed)">#1455</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41973" title="Fixes #1471.">r41973</a> | johnmaddock | 2007-12-11 09:28:15 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1471" title="#1471: Patches: Boost.Regex: Warnings about strcat/strcpy on VC8+STLport (closed: fixed)">#1471</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41976" title="Fixes #1474.">r41976</a> | johnmaddock | 2007-12-11 10:51:57 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1474" title="#1474: Bugs: VC++ 2008 seems to trigger multiple inclusion of boost::hash (closed: fixed)">#1474</a>. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41979" title="Put add-usage-requirements back">r41979</a> | vladimir_prus | 2007-12-11 11:41:47 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Put add-usage-requirements back </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41980" title="Implement ISFILE for real">r41980</a> | vladimir_prus | 2007-12-11 11:45:37 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Implement ISFILE for real </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41981" title="When searching for headers, ignore directories, just like gcc does. ">r41981</a> | vladimir_prus | 2007-12-11 11:46:19 -0800 (Tue, 11 Dec 2007) | 2 lines </p> </blockquote> <p> </p> <blockquote> <p> When searching for headers, ignore directories, just like gcc does. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/41983" title="remove conditionalization for aCC: this header works with gcc on HP-UX also">r41983</a> | bgubenko | 2007-12-11 12:43:11 -0800 (Tue, 11 Dec 2007) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> remove conditionalization for aCC: this header works with gcc on HP-UX also </p> </blockquote> <p> ........ </p> </description> <category>Ticket</category> </item> </channel> </rss>