RE: [boost] Re: counting_iterator_test.hpp fails on aC++

Dave, See attachment. Thanks! -Jerry -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of David Abrahams Sent: Friday, July 30, 2004 7:22 AM To: boost@lists.boost.org Subject: [boost] Re: counting_iterator_test.hpp fails on aC++ "DY, JERRY U \(SBCSI\)" <jd2419@sbc.com> writes:
Sorry. This is the correct version of the new static assertion.
// workaround for aC++ CR JAGaf33512 # define BOOST_ITERATOR_ADAPTOR_ASSERT_TRAVERSAL(cat) \ iterator_adaptor_assert_traversal<my_traversal, cat>(); // typedef int
assertion[sizeof(detail::static_assert_convertible_to<cat>(my_traversal(
)))];
-Jerry
Please post a patch as an attachment. I don't know how to evaluate this otherwise (especially not during my vacation ;->). -- Dave Abrahams Boost Consulting http://www.boost-consulting.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

"DY, JERRY U \(SBCSI\)" <jd2419@sbc.com> writes:
Dave, See attachment. Thanks!
Thank you! There are a number of problems with it: 1. It's not a patch as requested (nit; it was probably easier for me to handle than a patch would've been) 2. It defines an implementation detail function in the boost:: namespace 3. It uses ALL_CAPS identifiers for non-macro names (TR1, TR2) Instead of fixing the patch I used a simpler static assertion that should only fail to work on compilers that don't support is_convertible (CWPro7 and earlier), which I've already dropped support for IIRC. Let me know if aCC becomes happy. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
DY, JERRY U (SBCSI)