Boost C++ Libraries: Ticket #3084: integer_traits for std::streamsize not defined for Visual C++ in 64-bit when language extensions are off https://svn.boost.org/trac10/ticket/3084 <p> The following does not compile if you disable language extensions and build in 64-bit: </p> <pre class="wiki">#include &lt;boost/integer_traits.hpp&gt; #include &lt;iostream&gt; int main() { boost::integer_traits&lt;std::streamsize&gt;::const_max; } </pre><p> This makes it impossible to use boost date_time in 64-bit. </p> <p> The fix is below (add to integer_traits.hpp): </p> <pre class="wiki">#if defined(BOOST_HAS_MS_INT64) &amp;&amp; !defined(_MSC_EXTENSIONS) template&lt;&gt; class integer_traits&lt; __int64 &gt; : public std::numeric_limits&lt; __int64 &gt;, public detail::integer_traits_base&lt; __int64, _I64_MIN , _I64_MAX&gt; { }; #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3084 Trac 1.4.3 boost@… Tue, 26 May 2009 05:26:59 GMT <link>https://svn.boost.org/trac10/ticket/3084#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3084#comment:1</guid> <description> <p> By the way, the error occurs when compiling greg_month.cpp in 64-bit without language extensions. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 19 Aug 2009 11:08:49 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/3084#comment:2 https://svn.boost.org/trac10/ticket/3084#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">Daryle Walker</span> </li> <li><strong>component</strong> <span class="trac-field-old">date_time</span> → <span class="trac-field-new">integer</span> </li> </ul> Ticket John Maddock Mon, 23 Nov 2009 13:23:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3084#comment:3 https://svn.boost.org/trac10/ticket/3084#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/57863" title="Add support for MS style __int64 when long long is not available. ...">[57863]</a>) Add support for MS style <span class="underline">int64 when long long is not available. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3084" title="#3084: Bugs: integer_traits for std::streamsize not defined for Visual C++ in ... (closed: fixed)">#3084</a>. </span></p> Ticket