Boost C++ Libraries: Ticket #7981: boost 1.51.0 compatible with boost 1.45.0 https://svn.boost.org/trac10/ticket/7981 <p> I just upgraded boost from boost 1.45.0 to boost 1.51.0. I found the code, which can be compiled under boost 1.45.0, now cannot be compiled under boost 1.51.0. Here are the error messages: </p> <blockquote> <p> error: class "boost::filesystem::path" has no member "native_file_string" </p> </blockquote> <p> /opt/apps/intel13/boost/1.51.0/include/boost/functional/hash/detail/limits.hpp(31): error: namespace "std" has no member class "numeric_limits" /opt/apps/intel13/boost/1.51.0/include/boost/functional/hash/detail/limits.hpp(31): error: not a class or struct name </p> <blockquote> <p> struct limits : std::numeric_limits&lt;T&gt; {}; </p> </blockquote> <blockquote> <p> error: identifier "no_check" is undefined </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7981 Trac 1.4.3 viboes Sun, 10 Feb 2013 22:06:00 GMT component changed; owner set https://svn.boost.org/trac10/ticket/7981#comment:1 https://svn.boost.org/trac10/ticket/7981#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Daniel James</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">hash</span> </li> </ul> Ticket Daniel James Sun, 10 Feb 2013 22:20:17 GMT <link>https://svn.boost.org/trac10/ticket/7981#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7981#comment:2</guid> <description> <p> The first error is because 1.45 uses version 2 of Boost.Filesystem by default, but 1.51 only contains version 3. You might be able to fix it by defining <code>BOOST_FILESYSTEM_DEPRECATED</code>, but you really should update the code to use the new version. Details at: </p> <p> <a href="http://www.boost.org/doc/libs/1_53_0/libs/filesystem/doc/deprecated.html">http://www.boost.org/doc/libs/1_53_0/libs/filesystem/doc/deprecated.html</a> </p> <p> As for the hash error, can you give me some more detail? The code in question hasn't changed since 1.45, so it's hard to tell what the problem is. What platform are you running on? (I'm guessing some sort of linux? But the full version details might help). Does the error always happen when including the hash headers, or only when other code is included? If possible a minimal test case to trigger the error would be helpful. </p> <p> I don't know what the <code>no_check</code> error is, there's a class in spirit with that name - is it caused by something that uses spirit? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 01 Apr 2013 19:41:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7981#comment:3 https://svn.boost.org/trac10/ticket/7981#comment:3 <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">invalid</span> </li> </ul> <p> I'm going to close this as there's no response. If you have a problem like this, it's probably best to ask on the user list, or on stack overflow. </p> Ticket