Boost logo

Boost :

From: Jens Maurer (jmaurer_at_[hidden])
Date: 2000-05-10 17:46:52


John Maddock wrote:
> >What's the value of __BORLANDC__ for C++ Builder 4?
> We need to augment its config.hpp section with the version number.
> <
>
> C++ Builder 4 defines __BORLANDC__ to 0x540
> C++ Builder 5 defines __BORLANDC__ to 0x550

The following fixes are required so that my random numbers library
compiles with BCC. The fixes also make boost/rational.hpp work on
BCC. I am still working on MSVC issues (the "explicit function
template specialization chooses wrong things" bug seems to bite
me (again)).

After the MSVC issues are settled, I would like to try out the
new submission guidelines and post a "request for review".

Beman, could you please apply this patch to config.hpp
(also in random.zip in the egroups docvault):

--- /work/boost-1.14.0/boost/config.hpp Fri Feb 18 15:19:08 2000
+++ config.hpp Thu May 11 00:36:35 2000
@@ -153,8 +153,14 @@
 # endif
 
 #elif defined __BORLANDC__
-// C++ builder 4:
+# if __BORLANDC__ <= 0x0550
+// Borland C++ Builder 4 and 5:
 # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
+# if __BORLANDC__ == 0x0550
+// Borland C++ Builder 5, command-line compiler 5.5:
+# define BOOST_NO_OPERATORS_IN_NAMESPACE
+# endif
+# endif
 # if defined BOOST_DECL_EXPORTS
 # define BOOST_DECL __declspec(dllexport)
 # else

As a stopgap measure, could the maintainer of boost/operators.hpp
please apply the following patch to operators.hpp (also in
random.zip in the egroups docvault):

--- /work/boost-1.14.0/boost/operators.hpp Mon Dec 13 17:02:50 1999
+++ operators.hpp Thu May 11 00:37:38 2000
@@ -335,7 +335,7 @@
 
 #ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
 } // namespace boost
-#else
+#elif !defined(__BORLANDC__)
 namespace boost {
   using ::orable;
   using ::andable;
@@ -453,7 +453,7 @@
 
 #ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
 } // namespace boost
-#else
+#elif !defined(__BORLANDC__)
 
 namespace boost {
   using ::incrementable;

Jens Maurer.


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