Changeset 1554 for trunk/test_more


Ignore:
Timestamp:
Oct 20, 2009 8:21:22 AM (11 years ago)
Author:
bradbell
Message:

trunk: Avoid bug in Microsoft implementation of std::valarray<size_t>.

sparse_jacobian.cpp: use ifndef _MSC_VER to avoid bug.
build.sh: check version number before aborting on doxygen warning or error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/sparse_jacobian.cpp

    r1551 r1554  
    264264bool sparse_jacobian(void)
    265265{       bool ok = true;
    266         typedef std::vector< std::set<size_t> >   vector_set;
    267         typedef std::valarray< std::set<size_t> > valarray_set;
     266        typedef std::vector< std::set<size_t> >   std_vector_set;
     267        typedef std::valarray< std::set<size_t> > std_valarray_set;
     268        typedef CppAD::vector< std::set<size_t> > cppad_vector_set;
    268269        // ---------------------------------------------------------------
    269270        // vector of bool cases
     
    278279        // ---------------------------------------------------------------
    279280        // vector of set cases
    280         ok &= forward_set< CppAD::vector<double>, vector_set   >();
    281         ok &= reverse_set< CppAD::vector<double>, valarray_set >();
    282         //
    283         ok &= forward_set< std::vector<double>,   vector_set   >();
    284         ok &= reverse_set< std::vector<double>,   valarray_set >();
    285         //
    286         ok &= forward_set< std::valarray<double>, vector_set   >();
    287         ok &= reverse_set< std::valarray<double>, valarray_set >();
     281        ok &= forward_set< CppAD::vector<double>, std_vector_set   >();
     282        ok &= reverse_set< std::valarray<double>, std_vector_set   >();
     283        //
     284        ok &= forward_set< std::vector<double>,   cppad_vector_set >();
     285        ok &= reverse_set< CppAD::vector<double>, cppad_vector_set >();
     286        //
     287# ifndef _MSC_VER
     288        // there appears to be a bug in valarray on Microsoft compilers
     289        ok &= forward_set< std::valarray<double>, std_valarray_set >();
     290        ok &= reverse_set< std::valarray<double>, std_valarray_set >();
     291# endif
    288292        // ---------------------------------------------------------------
    289293        return ok;
Note: See TracChangeset for help on using the changeset viewer.