Opened 5 years ago

Closed 4 years ago

#13211 closed Bugs (invalid)

BOOST_MAY_ALIAS is not always defined and is not documented

Reported by: viboes Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.65.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

The issue comes from the fact that BOOST_MAY_ALIAS is not always defined. E.g.

// Type aliasing hint.
#if __has_attribute(__may_alias__)
#  define BOOST_MAY_ALIAS __attribute__((__may_alias__))
#endif

Wondering if this shouldn't be

// Type aliasing hint.
#if __has_attribute(__may_alias__)
#  define BOOST_MAY_ALIAS __attribute__((__may_alias__))
#else
#  define BOOST_MAY_ALIAS
#endif

Change History (2)

comment:1 by viboes, 5 years ago

Description: modified (diff)

Humm, I see that we have already this is suffix.hpp

#if !defined(BOOST_MAY_ALIAS)
#  define BOOST_NO_MAY_ALIAS
#  define BOOST_MAY_ALIAS
#endif

So, BOOST_MAY_ALIAS is always defined.

comment:2 by John Maddock, 4 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.