Changeset 1553 for trunk/test_more


Ignore:
Timestamp:
Oct 17, 2009 9:59:03 AM (11 years ago)
Author:
bradbell
Message:

trunk: Corrections for windows build.

test_more.vcproj: add sparse_jacobian.cpp to list of source files.
example.cpp: fix MSC warnings.
test_more.cpp: fix MSC warnings.
speed_test.hpp: fix MSC warnings.
for_sparse_jac.hpp: change iterator to const_iterator and while loop.
rev_sparse_jac.hpp: change iterator to const_iterator and while loop.
rev_sparse_hes.hpp: change iterator to const_iterator and while loop.
sparse_jacobian.hpp: change iterator to const_iterator and while loop.
optimize.cpp: fix MSC warnings.

Location:
trunk/test_more
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/optimize.cpp

    r1497 r1553  
    2424
    2525                // unary operator where operand is arg[0]
    26                 a = abs(x[0]);
     26                a = CppAD::abs(x[0]);
    2727                if( a < 1. )
    2828                        y[0] = sin(x[0]);
  • trunk/test_more/test_more.cpp

    r1551 r1553  
    8888        static size_t Run_error_count = 0;
    8989        bool Run(bool TestOk(void), std::string name)
    90         {       bool ok      = true;
    91                 size_t width =  20;         
     90        {       bool ok               = true;
     91                std::streamsize width =  20;         
    9292                std::cout.width( width );
    9393                std::cout.setf( std::ios_base::left );
    9494                std::cout << name;
    9595                //
    96                 ok &= name.size() < width;
     96                ok &= name.size() < size_t(width);
    9797                ok &= TestOk();
    9898                if( ok )
  • trunk/test_more/test_more.vcproj

    r1538 r1553  
    268268                        </File>
    269269                        <File
     270                                RelativePath=".\sparse_jacobian.cpp">
     271                        </File>
     272                        <File
    270273                                RelativePath=".\sparse_vec_ad.cpp">
    271274                        </File>
Note: See TracChangeset for help on using the changeset viewer.