Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-12-15 05:25:15


Hello,

Tru64/CXX-7.1 complains about the new boost.test code:

cxx: Error:
/house/schoepf/boost/regression/boost/boost/test/impl/exception_safety.ipp,
line 452: #304
           no instance of overloaded function "std::min" matches the argument
           list
             argument types are: (std::size_t, unsigned int)
           detected during instantiation of "void
 
boost::itest::<unnamed>::format_execution_path(boost::wrap_
                     stringstream &, ExecPathIt, ExecPathIt, unsigned int)
                     [with ExecPathIt=boost::itest::execution_path_point *]" at
                     line 503
                 for( i = 0; i < (std::min)( it->m_alloc.size, (unsigned)8
); i++ ) {
--------------------------------^
cxx: Error:
/house/schoepf/boost/regression/boost/boost/test/impl/exception_safety.ipp,
line 462: #304
           no instance of overloaded function "std::min" matches the argument
           list
             argument types are: (std::size_t, unsigned int)
           detected during instantiation of "void
 
boost::itest::<unnamed>::format_execution_path(boost::wrap_
                     stringstream &, ExecPathIt, ExecPathIt, unsigned int)
                     [with ExecPathIt=boost::itest::execution_path_point *]" at
                     line 503
                 for( i = 0; i < (std::min)( it->m_alloc.size, (unsigned)8
); i++ ) {
--------------------------------^
cxx: Info: 2 errors detected in the compilation of
"/house/schoepf/boost/regression/boost/libs/test/build/../src/exception_safety.cpp".

I think the (unsigned)8 should actually read static_cast<std::size_t>(8),
or perhaps just use (std:min<std::size_t>) instead.

Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk