Opened 11 years ago

Closed 11 years ago

#6245 closed Patches (fixed)

Make Boost.RegEx DLL usable from managed C++/CLI and non-managed native C++ modules at the same time

Reported by: 0xcdcdcdcd@… Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost 1.48.0 Severity: Problem
Keywords: regex managed Cc: boost.regex@…

Description

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?

Change History (1)

comment:1 by John Maddock, 11 years ago

Resolution: fixed
Status: newclosed

(In [76140]) Add BOOST_REGEX_NO_FASTCALL config macro and regenerate docs. Fixes #6245.

Note: See TracTickets for help on using tickets.