Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2004-09-27 07:40:51


On Mon, Sep 27, 2004 at 01:31:51PM +0200, Guillaume Melquiond wrote:

> Le dim 26/09/2004 ? 09:40, Aleksey Gurtovoy a ?crit :
> > Aleksey Gurtovoy writes:
> > > Bronek Kozicki writes:
> > >> Jonathan Wakely wrote:
> > >> > RCS file: /cvsroot/boost/boost/boost/numeric/interval/detail/bugs.hpp,v
> > >> [...]
> > >>
> > >> I tested this patch in my system (the one running regression tests for
> > >> mingw-3.4.1 release candidate), it's OK. No failures in numeric/interval
> > >
> > > Applied, thanks to everyone who helped to figure this out!
> >
> > Hmm, it looks like GCC 2.95.3/STLPort didn't get covered by the patch
> > -- http://tinyurl.com/6e3g5. Is this something we can fix easily?
>
> I have committed a small patch. Let's see if it fixes things. I can't be
> sure it will work since my version of STL is 4.6 and I don't have these
> problems.

Guillaume,

I see you've just removed the using decls for GCC 2.x - that should work
fine for both libstdc++-v2 and STLPort, AFAICT (I haven't tested it).

My other thought was something like this:

Index: boost/numeric/interval/detail/bugs.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/interval/detail/bugs.hpp,v
retrieving revision 1.12
diff -u -p -b -B -r1.12 bugs.hpp
--- boost/numeric/interval/detail/bugs.hpp 23 Sep 2004 17:59:34 -0000 1.12
+++ boost/numeric/interval/detail/bugs.hpp 27 Sep 2004 12:31:17 -0000
@@ -71,9 +71,15 @@ namespace numeric {
 # define BOOST_NUMERIC_INTERVAL_using_max(a)
 # define BOOST_NUMERIC_INTERVAL_using_math(a)
 # ifdef BOOST_HAS_INV_HYPERBOLIC
+# if defined (__SGI_STL_PORT)
+ using ::asinh;
+ using ::acosh;
+ using ::atanh;
+# else
   using std::asinh;
   using std::acosh;
   using std::atanh;
+# endif
 # undef BOOST_NUMERIC_INTERVAL_using_ahyp
 # define BOOST_NUMERIC_INTERVAL_using_ahyp(a)
 # endif

But this seems to be unnecessary complication when your version should
work.

jon

-- 
"Reason and free inquiry are the effectual agents against error.
 They are the natural enemies of error and error only."
	- Thomas Jefferson

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