Boost C++ Libraries: Ticket #646: [program_options] static const variable on evc4 https://svn.boost.org/trac10/ticket/646 <pre class="wiki">In Boost.Program_Options, in the file options_description.hpp the constant m_default_line_length is used and declared as static. On evc4 (a vc6 derived compiler) static class constants must be declared in the .cpp file. The patch fixes this by simply removing the "static" keyword. The constant is only used in the class as default ctor parameter. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/646 Trac 1.4.3 vividos Mon, 30 Oct 2006 10:04:25 GMT <link>https://svn.boost.org/trac10/ticket/646#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/646#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=124874 I checked compiling on msvc71 with this patch and noticed that the patch doesn't work. If the value for m_default_line_length would go into an enum, it would work on all compilers. The updated patch fixes this. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Thu, 28 Jun 2007 07:06:22 GMT</pubDate> <title>status, resolution changed; severity set https://svn.boost.org/trac10/ticket/646#comment:2 https://svn.boost.org/trac10/ticket/646#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">fixed</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> I have added the definition of that member in .cpp. That should fix the problem. </p> Ticket