Opened 5 years ago

Closed 4 years ago

#13438 closed Feature Requests (obsolete)

Boost Config check for std::optional

Reported by: Tony E Lewis <TonyELewis@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.66.0 Severity: Problem
Keywords: boost, config, c++17, optional Cc:

Description

Please can you add a check for the availability of C++17's std::optional. I think this would be really helpful because:

  • AFAIA, the major compilers all now have optional in std:: (rather than in std::experimental::)
  • I get the impression that people are fast adopting std::optional as a standard part of their type vocabulary.
  • I know at least one other ticket (ticket:12175) that's declining to support std::optional until Boost Config offers this feature test.

I'm not sure about Boost Config's policy about how it interacts with the standard's feature testing macros (which include one for std::optional). If you expect other libraries to use those feature tests directly, please can you point me to documentation for that policy that I can we can point other library devs to?

Thanks very much.

Change History (1)

comment:1 by John Maddock, 4 years ago

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