Now I have a more general question, not necessarily connected with Boost.Regex. I searched for such Bjam information, but couldn't easily find anything, so I thought I'd use this opportunity to ask.
On a related note, if what is to be built using the bjam command that you kindly provided below is not just the Boost.Regex project but the entire Boost, is there a way to confine the definition to the Boost.Regex-related parts? This is to avoid any possible unwanted side-effects in other Boost projects also expecting this particular definition (of course, this is very highly unlikely, but maybe Boost is complex enough, so it's good to aim to avoid such a possibility). As you have kindly written, one can edit boost/regex/user.hpp. This would produce the desired result -- confining the define only to the Boost.Regex related parts even when the entire Boost is built. But considering that editing source code should be avoided if possible, is there another way? Providing an extra bjam configuration file or something like this?
Passing --with-regex restricts the build to just Boost.Regex, while --without-regex would build everything except Boost.Regex. This should all be listed along with all the other options if you do a bjam --help in the Boost root directory. HTH, John.