Opened 10 years ago

Last modified 9 years ago

#6979 new Feature Requests

constexpr support in MPL

Reported by: anonymous Owned by: Aleksey Gurtovoy
Milestone: To Be Determined Component: mpl
Version: Boost 1.49.0 Severity: Problem
Keywords: constexpr Cc:

Description

C++11 introduced generalized constant expression with the constexpr keyword. It would be very nice if Boost.MPL static constants could be marked as constexpr so that they can be used in other constant expressions.

Change History (1)

comment:1 by gonzalobg88@…, 9 years ago

I have started to mark some mpl functions constexpr to be able to use them within C++14 relaxed constexpr functions. Can patches for this be incrementally committed or a huge patch that enables support for the whole library is preferred?

Note: See TracTickets for help on using tickets.