Opened 6 years ago

Closed 6 years ago

#12501 closed Bugs (fixed)

config/platform/vxworks.hpp #defines macros with lowercase names that clash with other libraries

Reported by: Itaj.Sherman@… Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.60.0 Severity: Problem
Keywords: vxworks Cc:

Description

boost/config/platform/vxworks.hpp #defines macros with bad names like getpagesize(), lstat(x,y).
These names clash with identifier names (function members) in other libraries that I #include and thus cannot compile.
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)); }

Change History (1)

comment:1 by John Maddock, 6 years ago

Resolution: fixed
Status: newclosed

Done, thanks for the report.

Note: See TracTickets for help on using tickets.