Subject: [Boost-bugs] [Boost C++ Libraries] #3655: Sun Studio gives errors when comparing ptime using BOOST_CHECK_EQUAL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-21 13:06:31
#3655: Sun Studio gives errors when comparing ptime using BOOST_CHECK_EQUAL
----------------------------------------+-----------------------------------
Reporter: Ãkos Maróy <akos@â¦> | Owner: rogeeff
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: test
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
----------------------------------------+-----------------------------------
the following source code:
{{{
#include <boost/date_time.hpp>
#include <boost/test/unit_test.hpp>
using namespace boost;
void foo() {
posix_time::ptime time1;
posix_time::ptime time2;
BOOST_CHECK_EQUAL(time1, time2);
}
}}}
gives a whole bunch of warnings when compiling with the Sun Studio C++
compiler (Sun Studio 12 patch 1 on 64 bit Linux):
{{{
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<boost::algorithm::detail::empty_formatF<char>,
boost::algorithm::detail::first_finderF<const char*,
boost::algorithm::is_equal>, const char*>& to a NULL value.
"/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37:
Where: While instantiating
"boost::algorithm::FormatterConcept<boost::algorithm::detail::empty_formatF<char>,
boost::algorithm::detail::first_finderF<const char*,
boost::algorithm::is_equal>, const char*>::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<boost::algorithm::detail::const_formatF<boost::iterator_range<const
char*>>, boost::algorithm::detail::first_finderF<const char*,
boost::algorithm::is_equal>, const char*>& to a NULL value.
"/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37:
Where: While instantiating
"boost::algorithm::FormatterConcept<boost::algorithm::detail::const_formatF<boost::iterator_range<const
char*>>, boost::algorithm::detail::first_finderF<const char*,
boost::algorithm::is_equal>, const char*>::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<boost::algorithm::detail::first_finderF<const
char*, boost::algorithm::is_equal>, const char*>& to a NULL value.
"/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37:
Where: While instantiating
"boost::algorithm::FinderConcept<boost::algorithm::detail::first_finderF<const
char*, boost::algorithm::is_equal>, const char*>::constraints()".
"/opt/usr-sun/include/boost/concept/detail/general.hpp", line 37:
Where: Instantiated from non-template code.
3 Warning(s) detected.
}}}
it would be nice if it didn't throw warnings
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3655> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC