Boost C++ Libraries: Ticket #1970: include regex.hpp, no global name for regcomp function of POSIX standard https://svn.boost.org/trac10/ticket/1970 <p> I want to use POSIX Compatible C API support for regex library. I include the &lt;boost/regex.hpp&gt; header file to want to get the global name for regcomp function according to the documetation libs\regex\doc\html\boost_regex\ref\posix.html, but failed to pass the compile. </p> <p> So I decide to include the &lt;boost/cregex.hpp&gt; head file and using the namespace boost, it works. But I don't want to export all the names in the boost namespace to global. </p> <p> I am using MSVC version 9.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1970 Trac 1.4.3 John Maddock Mon, 02 Jun 2008 15:20:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1970#comment:1 https://svn.boost.org/trac10/ticket/1970#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> This is the intended behaviour, there are three headers here: </p> <p> &lt;boost/regex.hpp&gt; does *not* define the POSIX API's as they're deprecated. &lt;boost/cregex.hpp&gt; does define the POSIX API's but in namespace Boost. &lt;boost/regex.h&gt; does define the POSIX API's and imports them into the global namespace. </p> <p> In other words, if you want compatibility with other POSIX implementations, then regex.h is the right one to include, and NOT regex.hpp. </p> <p> HTH, John Maddock </p> Ticket arthurlee <boyal@…> Tue, 03 Jun 2008 06:31:17 GMT <link>https://svn.boost.org/trac10/ticket/1970#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1970#comment:2</guid> <description> <p> Thanks a lot. I understood it. </p> </description> <category>Ticket</category> </item> <item> <pubDate>Mon, 03 Nov 2008 14:20:34 GMT</pubDate> <title>milestone deleted https://svn.boost.org/trac10/ticket/1970#comment:3 https://svn.boost.org/trac10/ticket/1970#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.35.1</span> </li> </ul> <p> Milestone Boost 1.35.1 deleted </p> Ticket