Boost logo

Boost :

From: Alisdair Meredith (alisdair.meredith_at_[hidden])
Date: 2003-02-02 08:46:46


The following patch will fix the compile time test failure for
tuple_io/BCB6
[A similar fix was required for format]

tuple_io.hpp (from line 439)

#if defined (BOOST_NO_STD_LOCALE)
  const bool is_delimiter = !isspace(d);
#elif defined ( __BORLANDC__ )
  const bool is_delimiter = std::use_facet< std::ctype< char > >(
is.getloc() ).is( std::ctype_base::space, d);
#else
  const bool is_delimiter = (!std::isspace(d, is.getloc()) );
#endif

However, that now gives 4 runtime failures

io_test.cpp(81): error in "call_test_main": test tmp3.good() failed
io_test.cpp(87): error in "call_test_main": test tmp3.good() failed
io_test.cpp(96): error in "call_test_main": test bool(is >> ti) failed
io_test.cpp(97): error in "call_test_main": test ti == make_tuple(100,
200, 300) failed

I'm not sure if this is progress or not, as compile failures are usually
preferred to runtime ones.
OTOH, maybe someone more familiar with stream implementations can take
it from here and provide the rest of the solution?

-- 
AlisdairM

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk