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-19 09:14:06


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

  * status: new => closed
  * resolution: => wontfix

Comment:

 Here's the thing - I don't see that there is anything we can do at out end
 to fix this as private/shared attribute can only be added in the OMP
 declaration?

 For example adding

 {{{boost::detail::is_convertible_basic_impl<boost::detail::iterator_category_with_traversal<std::input_iterator_tag,boost::random_access_traversal_tag>
 &, std::input_iterator_tag>::_m_from}}}

 to the shared list in your OMP declaration fixes the compile.

 Of course that then makes your code depend on an implementation detail,
 which it clearly shouldn't do :-(

 To be honest I don't understand why MSVC is complaining here, given that
 it's producing an error for something that clearly is not used as a
 variable in the loop, GCC compiles your code just fine BTW with g++ -omp.

 Closing for now since I can't see how we ''can'' fix, please reopen if
 there is a fix we can apply at our end.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4750#comment:2>
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