Boost logo

Boost Users :

From: Wayne Hartell (whar_at_[hidden])
Date: 2002-04-12 21:18:39


Hi again,
 
I managed to get past the first VC7 error by adding the following line
to graph/properties.hpp which appears like it was an omission...
 
#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
  template <>
  struct property_traits<default_color_type*> {
    typedef default_color_type value_type;
    typedef value_type& reference; // Newly Added
    typedef std::ptrdiff_t key_type;
    typedef lvalue_property_map_tag category;
  };
 
but now I run into yet another compiler error...
 
\boost_1_27_0\boost\concept_check.hpp(185): fatal error C1001: INTERNAL
COMPILER ERROR
        (compiler file 'msc1.cpp', line 1414)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more
information

  template <class TT>
  struct DefaultConstructibleConcept
  {
    void constraints() {
      TT a; // require default constructor
      ignore_unused_variable_warning(a);
    }
  };
 
  template <class TT>
  struct AssignableConcept
  {
    void constraints() {
#if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
      a = a; // require assignment operator
#endif
      const_constraints(a);
    }
    void const_constraints(const TT& b) { // C1001 INTERNAL COMPILER
ERROR
#if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
      a = b; // const required for argument to assignment
#endif
    }
    TT a;
  };
 
Any help would be greatly appreciated...
 
Kind Regards
Wayne Hartell
 
-----Original Message-----
From: Wayne Hartell
Sent: Friday, April 12, 2002 5:54 PM
To: 'Boost-Users_at_[hidden]'
Subject: Problem Compiling Boost Graph Library User Guide Code

Hi,
 
I am running into the following compile error when using VC7 to compile
the BGL text book example on Edge Connectivity (Chap 8.2)
 
boost_1_27_0\boost\property_map.hpp(151): error C2039: 'reference' : is
not a member of 'boost::property_traits<PA>'
        with
        [
            PA=boost::default_color_type *
        ]
 
at line :
typedef typename property_traits<PMap>::reference reference;

 
My first step was to try to compile this using VC6 instead, but in that
case I run into the following error :
 
boost_1_27_0\boost\graph\detail\adjacency_list.hpp(1830) : fatal error
C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1794)
         Please choose the Technical Support command on the Visual C++
         Help menu, or open the Technical Support help file for more
information
 
at line :
 
      inline vec_adj_list_impl(vertices_size_type _num_vertices)
        : m_vertices(_num_vertices) { }
 
The last error is coincidentally the same type of compiler error that I
just experienced in VC7 to which I recently posted a work around for.
 
I would be extremely grateful for any suggestions for either of these
problems...
 
Kind Regards,
Wayne Hartell
 
 

[Non-text portions of this message have been removed]


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