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: | 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)); }
Note:
See TracTickets
for help on using tickets.
Done, thanks for the report.