Boost logo

Boost :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2003-12-16 06:12:17


Angus Leeming wrote:

> I cannot compile a (trivial) file containing just:
>
> #include <boost/graph/graph_traits.hpp>
>
> against current the anon-cvs version of boost cvs.
> (Does it still lag the real repository?)
>
> The error:
[snip...]
> suggests that the BGL is lagging behind changes made to the
> Type Traits library.

Actually, this patch seems to do the trick and enables my real code
to compile too.

Regards,
Angus

Index: boost/pending/ct_if.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/pending/ct_if.hpp,v
retrieving revision 1.4
diff -u -p -r1.4 ct_if.hpp
--- boost/pending/ct_if.hpp 16 Sep 2002 04:10:29 -0000 1.4
+++ boost/pending/ct_if.hpp 16 Dec 2003 11:07:14 -0000
@@ -23,8 +23,8 @@ namespace boost {

   struct ct_if_error { };

- struct true_type { enum { value = true }; };
- struct false_type { enum { value = false }; };
+// struct true_type { enum { value = true }; };
+// struct false_type { enum { value = false }; };

   template <class A, class B>
   struct ct_and { typedef false_type type; };


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