Subject: [Boost-bugs] [Boost C++ Libraries] #12501: config/platform/vxworks.hpp #defines macros with lowercase names that clash with other libraries
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-05 12:11:20
#12501: config/platform/vxworks.hpp #defines macros with lowercase names that clash
with other libraries
------------------------------+-------------------------
Reporter: Itaj.Sherman@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.60.0 | Severity: Problem
Keywords: vxworks |
------------------------------+-------------------------
boost/config/platform/vxworks.hpp
#defines macros with bad names like getpagesize(), lstat(x,y).[[BR]]
These names clash with identifier names (function members) in other
libraries that I #include and thus cannot compile.[[BR]]
Please change these macros to inline global functions or template
functions.
e.g.
{{{
//#define lstat(p, b) stat(p, b)
template< typename T1, typename T2 >
BOOST_TYPOF( ::stat( declval<T1>(), declval<T2>() ) )
lstat( T1&& t1, T2&& t2 )
{ return ::stat(forward(t1),forward(t2)); }
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12501> 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:20 UTC