Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11855: generic gives problems in C++/CLI
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-10 15:29:47
#11855: generic gives problems in C++/CLI
----------------------------------+------------------------
Reporter: gast128@⦠| Owner: bemandawes
Type: Library Submissions | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+------------------------
Comment (by Michael Rasmussen <Michael.Rasmussen@â¦>):
C++/CLI has an extension called {{{__identifier}}} (See
https://msdn.microsoft.com/en-us/library/hzc8ytsz.aspx) that can be used
to work around it. Something like the following should work:
{{{
#ifdef __cplusplus_cli
#define generic __identifier(generic)
#endif
#include <boost/filesystem.hpp>
#ifdef __cplusplus_cli
#undef generic
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11855#comment:2> 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:19 UTC