Changeset 3254 for trunk/test/utility.cc


Ignore:
Timestamp:
Jun 9, 2014, 9:53:25 AM (9 years ago)
Author:
Peter
Message:

fixes #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/utility.cc

    r3253 r3254  
    302302                << e.what() << "\n";
    303303  }
     304  // test ticket #799
     305  if (!suite.add(utility::get(m, "one")==1))
     306    suite.err() << "get(m, \"one\")!=1\n";
     307
    304308  // don't run compiler test code
    305309  if (false) {
     
    315319
    316320    std::map<key_type, value_type, Compare> m3;
    317     key_type my_key;
     321
     322    typedef boost::default_constructible_archetype<
     323      boost::sgi_assignable_archetype<> > key_type;
     324
     325    // create an object that is convertible to key_type
     326    boost::detail::dummy_constructor x;
     327    boost::convertible_to_archetype<key_type> my_key(x);
    318328    utility::get(m3, my_key);
    319329  }
Note: See TracChangeset for help on using the changeset viewer.