Opened 7 years ago

Closed 6 years ago

#11788 closed Bugs (obsolete)

cland and boost on windows

Reported by: thosrtanner58@… Owned by: Anthony Williams
Milestone: To Be Determined Component: config
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

I've come across two problems with boost (1.57) and clang (3.6.1) on windows where boost is getting confused probably by clang reporting it has microsoft versions

  1. Somehow or other it ends up in msvc/typeof_impl.hpp without BOOST_MSVC being defined - I believe the fix for this would be to change boost/typeof/typeof.hpp to check if clang is defined if _MSC_VER is defined and use native typeof.
  1. There is also a problem with thread_primitives.hpp - see http://stackoverflow.com/questions/30003585/trouble-using-boost-thread-headers-with-clang-windows - where (apart from compiling with a compatibility flag and hacking one of the headers) I can't really see a proper answer

Change History (3)

comment:1 by anonymous, 7 years ago

Component: threadsNone

comment:2 by viboes, 7 years ago

Component: Noneconfig

comment:3 by John Maddock, 6 years ago

Resolution: obsolete
Status: newclosed

I'm closing this as obsolete for several reasons:

  • clang msvc emulation is flaky, and while we have tried to make it work it's still very imperfect.
  • The reported issues don't relate to Boost.Config.
  • Things have moved on for both Boost and clang since this was posted.
Note: See TracTickets for help on using tickets.