Boost C++ Libraries: Ticket #3207: cannot use both students_t.hpp and unit_test.hpp https://svn.boost.org/trac10/ticket/3207 <p> This code does not compile: </p> <pre class="wiki">#include &lt;boost/test/included/unit_test.hpp&gt; #include &lt;boost/math/distributions/students_t.hpp&gt; static void log_test() { boost::math::students_t dist(0.5); double p = boost::math::cdf(dist, 1.0); } </pre><p> I get this error message: </p> <pre class="wiki">d:\dev\trunk\lib_boost\inc\boost\math\special_functions\log1p.hpp(407) : error C2882: 'log' : illegal use of namespace identifier in expression </pre><p> it can be fixed by changing the offending line </p> <pre class="wiki">return log(u)*(x/(u-1.0)); </pre><p> into </p> <pre class="wiki">return ::log(u)*(x/(u-1.0)); </pre><p> but I am not sure if this is a good fix. I have tried this on an older version we are working with, and on the current svn trunk. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3207 Trac 1.4.3 John Maddock Tue, 23 Jun 2009 16:39:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3207#comment:1 https://svn.boost.org/trac10/ticket/3207#comment:1 <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/54284" title="Fix lookup ambiguity. Fixes #3207.">[54284]</a>) Fix lookup ambiguity. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3207" title="#3207: Bugs: cannot use both students_t.hpp and unit_test.hpp (closed: fixed)">#3207</a>. </p> Ticket John Maddock Tue, 23 Jun 2009 16:40:25 GMT <link>https://svn.boost.org/trac10/ticket/3207#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3207#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/54285" title="Fix lookup ambiguity. Fixes #3207.">[54285]</a>) Fix lookup ambiguity. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3207" title="#3207: Bugs: cannot use both students_t.hpp and unit_test.hpp (closed: fixed)">#3207</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>