Boost C++ Libraries: Ticket #3655: Sun Studio gives errors when comparing ptime using BOOST_CHECK_EQUAL https://svn.boost.org/trac10/ticket/3655 <p> the following source code: </p> <pre class="wiki">#include &lt;boost/date_time.hpp&gt; #include &lt;boost/test/unit_test.hpp&gt; using namespace boost; void foo() { posix_time::ptime time1; posix_time::ptime time2; BOOST_CHECK_EQUAL(time1, time2); } </pre><p> gives a whole bunch of warnings when compiling with the Sun Studio C++ compiler (Sun Studio 12 patch 1 on 64 bit Linux): </p> <pre class="wiki">CC -I/opt/usr-sun/include -library=stlport4 -features=tmplife \ -features=tmplrefstatic -compat=5 -mt -c -o t t.cpp "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Warning: Initializing boost::algorithm::FormatterConcept&lt;boost::algorithm::detail::empty_formatF&lt;char&gt;, boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;&amp; to a NULL value. "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: While instantiating "boost::algorithm::FormatterConcept&lt;boost::algorithm::detail::empty_formatF&lt;char&gt;, boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;::constraints()". "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: Instantiated from non-template code. "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Warning: Initializing boost::algorithm::FormatterConcept&lt;boost::algorithm::detail::const_formatF&lt;boost::iterator_range&lt;const char*&gt;&gt;, boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;&amp; to a NULL value. "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: While instantiating "boost::algorithm::FormatterConcept&lt;boost::algorithm::detail::const_formatF&lt;boost::iterator_range&lt;const char*&gt;&gt;, boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;::constraints()". "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: Instantiated from non-template code. "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Warning: Initializing boost::algorithm::FinderConcept&lt;boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;&amp; to a NULL value. "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: While instantiating "boost::algorithm::FinderConcept&lt;boost::algorithm::detail::first_finderF&lt;const char*, boost::algorithm::is_equal&gt;, const char*&gt;::constraints()". "/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37: Where: Instantiated from non-template code. 3 Warning(s) detected. </pre><p> it would be nice if it didn't throw warnings </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3655 Trac 1.4.3 Gennadiy Rozental Sun, 22 Nov 2009 23:28:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3655#comment:1 https://svn.boost.org/trac10/ticket/3655#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">wontfix</span> </li> </ul> <p> There is nothing here Boost.Test related. Add '+d' to the command line to avoid warnings (and -g -KPIC while you at it). Otherwise you can check in mailing list, though Idoubt anyone cares about this warning/compiler. </p> Ticket Ákos Maróy <akos@…> Mon, 23 Nov 2009 07:36:43 GMT <link>https://svn.boost.org/trac10/ticket/3655#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3655#comment:2</guid> <description> <p> thanks for the tip. though I'm not sure why would anyone not care about this compiler. </p> </description> <category>Ticket</category> </item> </channel> </rss>