Tools: gcc34, msvc80, msvc71 Date: 2006-03-13 00:50:51.859000
Code:
#include <iostream>
#include <ostream>
#include <iomanip>
#include <limits>
#include <cstdlib>
#include "imp/ntuple.hpp"
namespace
{
int check_failures = 0;
}
#define CHECK( E ) \
do { if ( !(E) ) { ++check_failures; std::cerr << #E << '\n'; } } while (false)
void test()
{
using imp::ntuple;
using imp::ntuple_;
using imp::ref;
imp::ntuple< int, double, bool > idb( 1, 2.0, false );
}
int main()
{
bool r = false;
try
{
test();
r = true;
}
catch (std::exception const &e)
{
std::cerr << e.what() << std::endl;
}
catch ( ... )
{
std::cerr << "Exception ...\n";
}
std::cout.flush();
std::cerr.flush();
return !r || check_failures ? EXIT_FAILURE : EXIT_SUCCESS;
}
Tool gcc34 Passed
Tool msvc80 Passed
Tool msvc71 Passed