Boost logo

Boost Users :

From: Eric B (eric.britz_at_[hidden])
Date: 2008-07-08 05:52:15


any help would be appreciated

in the meantime I have compiled layout_test.cpp with BCB6 and I had to
change some files of the library

Here is the modified code (it might help somebody)
(note you have to define BOOST_NO_CV_SPECIALIZATIONS in your compiler
options)

I'm using boost 1 35.
2 files were modified.
Changes are marked with "ERBRI CHANGE"

========================================================
relaxed_heap.hpp

from line 33
class relaxed_heap
{
   struct group;

   typedef relaxed_heap self_type;
   typedef std::size_t rank_type;

public:
   typedef IndexedType value_type;
   typedef rank_type size_type;

// ERBRI CHANGE
// use a typedef and make it public
typedef enum { smallest_key, stored_key, largest_key } group_key_kind;
// ERBRI CHANGE

private:
   /**
    * The kind of key that a group has. The actual values are discussed
    * in-depth in the documentation of the @c kind field of the @c group
    * structure. Note that the order of the enumerators *IS* important
    * and must not be changed.
    */

// ERBRI CHANGE
// commented => original code
// enum group_key_kind { smallest_key, stored_key, largest_key };
// ERBRI CHANGE

.....

========================================================
relaxed_heap.hpp

from line 228

       for (size_type i = start; i < end; ++i) {
// if ( groups[i] && (!x->value || compare(*groups[i], *x->value))) {
// ERBRI CHANGE => same code but if splitted in 2 if
         if ( groups[i] )
         {
           if (!x->value || compare(*groups[i], *x->value) )
           {
             x->kind = stored_key;
             x->value = groups[i];
           }
         }
       }

....

========================================================
facade_iterator_category.hpp

from line 145

     BOOST_MPL_ASSERT_NOT((
         is_convertible<
               /*typename ERBRI CHANGE => remove typename*/
iterator_category_to_traversal<Category>::type
             , Traversal
>));


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net