Opened 5 years ago

Last modified 4 years ago

#13211 closed Bugs

BOOST_MAY_ALIAS is not always defined and is not documented — at Version 1

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 (1)

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.

Note: See TracTickets for help on using tickets.