|
Boost : |
From: Antony Searle (antony.searle_at_[hidden])
Date: 2004-05-04 20:31:28
While using zip_iterator I encountered some minor bugs.
Bugs:
The include guard is broken (the #define has been omitted).
The function "tuple_equal" causes multiple-definition linker errors.
Patch:
Added missing #define to header guard.
Added missing "inline" keyword to "tuple_equal" definition.
Please find attached the patch file.
Best,
Antony Searle
zip_iterator.hpp.patch:
*** zip_iterator.hpp.orig 2004-05-05 10:35:41.000000000 +1000
--- zip_iterator.hpp 2004-05-05 11:08:45.000000000 +1000
***************
*** 19,24 ****
--- 19,25 ----
// Borland 5.5.1 (broken due to lack of support from Boost.Tuples)
#ifndef BOOST_ZIP_ITERATOR_TMB_07_13_2003_HPP_
+ #define BOOST_ZIP_ITERATOR_TMB_07_13_2003_HPP_
#include <stddef.h>
#include <boost/iterator.hpp>
***************
*** 315,321 ****
// No point in bringing in a bunch of #ifdefs here. This is
// going to go away with the next tuple implementation anyway.
//
! bool tuple_equal(tuples::null_type, tuples::null_type)
{ return true; }
template<typename Tuple1, typename Tuple2>
--- 316,322 ----
// No point in bringing in a bunch of #ifdefs here. This is
// going to go away with the next tuple implementation anyway.
//
! inline bool tuple_equal(tuples::null_type, tuples::null_type)
{ return true; }
template<typename Tuple1, typename Tuple2>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk