Re: [Boost-bugs] [Boost C++ Libraries] #1970: include regex.hpp, no global name for regcomp function of POSIX standard

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1970: include regex.hpp, no global name for regcomp function of POSIX standard
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-02 15:20:30


#1970: include regex.hpp, no global name for regcomp function of POSIX standard
----------------------------------------+-----------------------------------
  Reporter: arthurlee <boyal_at_[hidden]> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: Boost 1.35.1 | Component: regex
   Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords: regex POSIX Compatible C API
----------------------------------------+-----------------------------------
Changes (by johnmaddock):

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

Comment:

 This is the intended behaviour, there are three headers here:

 <boost/regex.hpp> does *not* define the POSIX API's as they're
 deprecated.
 <boost/cregex.hpp> does define the POSIX API's but in namespace Boost.
 <boost/regex.h> does define the POSIX API's and imports them into the
 global namespace.

 In other words, if you want compatibility with other POSIX
 implementations, then regex.h is the right one to include, and NOT
 regex.hpp.

 HTH, John Maddock

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1970#comment:1>
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:49:57 UTC