[CoinUtils-tickets] [COIN-OR Common Utilities] #39: Recent change in trunk is causing unitTest.cpp compile failure with MS V7 compiler

COIN-OR Common Utilities coin-trac at coin-or.org
Wed Oct 3 14:07:18 EDT 2007


#39: Recent change in trunk is causing unitTest.cpp compile failure with MS V7
compiler
---------------------+------------------------------------------------------
Reporter:  jpfasano  |     Owner:     
    Type:  defect    |    Status:  new
Priority:  major     |   Version:     
Keywords:            |  
---------------------+------------------------------------------------------
 trunk\!CoinUtils\test\unitTest.cpp does not compile with MS Visual C++ Ver
 7.
 This is a recent development as a result of change https://projects.coin-
 or.org/CoinUtils/changeset/857.
 {{{
 ------ Build started: Project: unitTestCoinUtils, Configuration: Debug
 Win32 ------

 Compiling...
 unitTest.cpp
 d:\COIN\Coin-Cbc-All\trunk\CoinUtils\test\unitTest.cpp(64) : error C2039:
 'size_t' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
         with
         [
             _Elem=char,
             _Traits=std::char_traits<char>,
             _Ax=std::allocator<char>
         ]

 Build log was saved at "file://d:\Coin\Coin-Cbc-
 All\trunk\CoinUtils\MSVisualStudio\v7\unitTestCoinUtils\Debug\BuildLog.htm"
 unitTestCoinUtils - 1 error(s), 0 warning(s)
 }}}
 I suspect the line 64 of unitTest.cpp should be changed from
 {{{
 std::string::size_t eqPos = parm.find('=');
 }}}
 to
 {{{
 size_t eqPos = parm.find('=');
 }}}

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/39>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list