[SVN r42338]
This commit is contained in:
Daniel James
2007-12-29 15:30:07 +00:00
parent 796afa5cc8
commit b47d6622cb
6 changed files with 11 additions and 36 deletions

View File

@@ -30,8 +30,12 @@ int test_main( int /* argc */, char* /* argv */[] )
BOOST_REQUIRE(NULL != testfile);
// test array of objects
std::complex<float> a(std::rand(),std::rand());
std::complex<double> b(std::rand(),std::rand());
std::complex<float> a(static_cast<float>(std::rand()),
static_cast<float>(std::rand()));
std::complex<double> b(static_cast<double>(std::rand()),
static_cast<double>(std::rand()));
{
test_ostream os(testfile, TEST_STREAM_FLAGS);
test_oarchive oa(os);