Re: [Boost-bugs] [Boost C++ Libraries] #4750: is_convertible_basic_impl causes compile error when used inside OpenMP loop

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4750: is_convertible_basic_impl causes compile error when used inside OpenMP loop
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-18 15:34:34


#4750: is_convertible_basic_impl causes compile error when used inside OpenMP loop
------------------------------------+---------------------------------------
  Reporter: therealremi@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords: OpenMP, type traits, graph
------------------------------------+---------------------------------------

Comment (by therealremi@…):

 Sory for bad formating. Again:
 {{{
 #define BOOST_ALL_NO_LIB 1
 #include <boost/graph/adjacency_list.hpp>
 #include <omp.h>


 int main(int argc, char* argv[])
 {
         typedef boost::adjacency_list<boost::vecS, boost::vecS,
 boost::undirectedS> GraphType;
         typedef GraphType::adjacency_iterator GraphAdjacencyIterator;
         const unsigned int vertex_count( 20 );
         typedef std::pair<int, int> EdgeType;
         std::vector<EdgeType> edges;
         const GraphType graph( edges.begin(), edges.end(), vertex_count,
 edges.size() );

         int i( 0 );
         #pragma omp parallel for schedule(static, 1) default(none)
 private(i) shared(vertex_count, graph)
         for ( i = 0; i < vertex_count; ++i )
         {
                 const std::pair<GraphAdjacencyIterator,
 GraphAdjacencyIterator> adjacent
                 (
                         boost::adjacent_vertices(i, graph)
                 );
         }

     return 0;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4750#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC