Boost C++ Libraries: Ticket #7077: A few trivial 64-bit warning fixes on Windows https://svn.boost.org/trac10/ticket/7077 <p> In case they are of any interest. </p> <p> Also with 1.50 I found that distance() needed to be std:: scoped in my build. Sadly I've forgotten which platform/compiler that was - I suspect mingw64. Anyway, included in the patch. </p> <p> Regards </p> <p> Luke Elliott. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7077 Trac 1.4.3 Luke Elliott <lukester_null@…> Wed, 04 Jul 2012 11:30:17 GMT attachment set https://svn.boost.org/trac10/ticket/7077 https://svn.boost.org/trac10/ticket/7077 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">po.patch</span> </li> </ul> Ticket Vladimir Prus Thu, 05 Jul 2012 12:57:04 GMT <link>https://svn.boost.org/trac10/ticket/7077#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7077#comment:1</guid> <description> <p> So looks like unsigned and vector::size_type are not longer the same type? Which one is 64-bit now? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 05 Jul 2012 13:07:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7077#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7077#comment:2</guid> <description> <p> IIRC <code>unsigned</code> is 32 bit, <code>std::size_t</code> and <code>vector::size_type</code> are <code>unsigned long</code>, which is 64 bit. It's generally better to use <code>std::size_t</code> (or <code>vector::size_type</code> or whatever), unless you have a good reason not to. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Thu, 05 Jul 2012 13:17:26 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7077#comment:3 https://svn.boost.org/trac10/ticket/7077#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79283" title="Fix warnings on 64-bit systems. Closes #7077. ">[79283]</a>) Fix warnings on 64-bit systems. </p> <p> Closes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7077" title="#7077: Patches: A few trivial 64-bit warning fixes on Windows (closed: fixed)">#7077</a>. </p> Ticket Vladimir Prus Thu, 05 Jul 2012 13:18:46 GMT <link>https://svn.boost.org/trac10/ticket/7077#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7077#comment:4</guid> <description> <p> I've actually used std::size_t in one place while applying the patch, but others would require bubbling more changes up the code that I have the time today. </p> <p> Could you give trunk one more try, in case I've messed up something? </p> </description> <category>Ticket</category> </item> <item> <author>lukester_null@…</author> <pubDate>Thu, 05 Jul 2012 16:57:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7077#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7077#comment:5</guid> <description> <p> Looks good to me, thanks. Only small thing is line 458 of cmdline.cpp looks a bit weird with tab size of 4 (spaces used everywhere else?) if such things bother you... </p> <p> Regards </p> <p> Luke. </p> </description> <category>Ticket</category> </item> </channel> </rss>