id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 802,[thread] MSVS: Allow use of thread headers with /Za,sohail_,Anthony Williams,"{{{ The following code will not compile if built with /Za on Visual C++ 7.1+: #include int main(){} It will fail with the following assertion: # error ""Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"" The reason is that the Boost.Config machinery realizes that you cannot use the Windows API unless you enable language extensions. As a result, threads cannot be available. This is correct behaviour when you are indeed *using* the Windows API. However, in the above case where you separately compile the threads library, you do not actually use the Windows API => language extensions are not necessary => no need to explicitly specify BOOST_DISABLE_WIN32. I therefore submit that there be some machinery/configuration variables to allow libraries to specify whether or not they require the Windows API. The proposed patch does not modify existing behaviour. That is, if the config machinery decides that the API is needed, it is required, unless explicitly disabled. The code to do this in library xyz would look something like this: #if defined(BOOST_BUILDING_WHATEVER) # define BOOST_NO_REQUIRE_WIN32 #endif #include I am uncertain of the exact name of the macro that is required but I am certain a macro is required. The attached patch is against 1.33.1. I don't think there is any rush to put this into 1.34. I'm pretty sure it would be nice, but people can manually patch it until 1.35 whenever that is released. Thanks, Sohail }}}",Patches,closed,,thread,Boost 1.34.0,Problem,wontfix,,