[Boost-bugs] [Boost C++ Libraries] #6245: Make Boost.RegEx DLL usable from managed C++/CLI and non-managed native C++ modules at the same time

Subject: [Boost-bugs] [Boost C++ Libraries] #6245: Make Boost.RegEx DLL usable from managed C++/CLI and non-managed native C++ modules at the same time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-09 08:26:33


#6245: Make Boost.RegEx DLL usable from managed C++/CLI and non-managed native C++
modules at the same time
-------------------------------+--------------------------------------------
 Reporter: 0xcdcdcdcd@… | Owner: johnmaddock
     Type: Patches | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: regex managed |
-------------------------------+--------------------------------------------
 Referencing
 [http://permalink.gmane.org/gmane.comp.lib.boost.devel/226293]:
 .. _MANAGED is a define set by the VC compiler if the /clr switch is
 present, therefore it is actually never set when compiling the boost
 libraries. Of course you can set it via `define=_MANAGED` and you can then
 use these generated libraries from a C++/CLI project. (Which I have done:
 ... `define=_MANAGED` ... --with-regex ...)

 BUT: You can now *not* use these libraries from a non-managed ("native")
 C++ project as that, obviously, doesn't have _MANAGED set, and unlike with
 the boost build, I don't think it's feasible to define this wholesale for
 a native project. (And anyways, I'm rather hesitant to define this
 myself.) ...

 ...

 On 02.12.2011 10:29, John Maddock wrote:
>> (I have attached a patch, hope this works.)
>>
>>
>> Would this make sense?
>
> Makes sense to me - I don't have time to test this just now, can you
> file a new issue on svn.boost.org so I don't forget?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6245>
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:50:08 UTC