Skip to content

Commit

Permalink
Also define BOOST_MP11_HAS_TEMPLATE_AUTO when __cpp_template_auto is …
Browse files Browse the repository at this point in the history
…defined. Refs #90.
  • Loading branch information
pdimov committed Jan 7, 2024
1 parent 863d8b8 commit dcbb522
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/boost/mp11/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@

#if defined(__cpp_nontype_template_parameter_auto) && __cpp_nontype_template_parameter_auto >= 201606L
# define BOOST_MP11_HAS_TEMPLATE_AUTO
#elif defined(__cpp_template_auto) && __cpp_template_auto >= 201606L
// old macro name from P0127R2, in Clang 4+ and GCC 7+
# define BOOST_MP11_HAS_TEMPLATE_AUTO
#endif

#if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1920 )
Expand Down

0 comments on commit dcbb522

Please sign in to comment.