← Back to team overview

clause-developers team mailing list archive

C++14 and C++17 support

 

Hello,

This is related to commit fd2a0558dc19032e50b81b6912da2ea5b3f7381a, which is a stable enough modification extending 'clause' support for upcoming C++ features.

I have added support for writing code in C++14 and C++17 mode in the 'clause' library, through CLAUSE_ENABLE_CXX14 and CLAUSE_ENABLE_CXX1Z macros. Anything
within an #ifdef of said macros becomes available to the library provided
--enable-cxx14 or --enable--cxx17 has been used. Whenever CLAUSE_ENABLE_CXX1Z
dependent code is written, it will automatically allow all C++14 code under
CLAUSE_ENABLE_CXX14 ifdefs to be accessible.

This makes it easy to work with the library using bleeding edge C++ language
features that are implemented in popular compilers, but it does not mean that
the core functionality of the library should be dependent upon C++ revisions
that have not been fully standardized! It just makes it easier to work with
upcoming standards for then the library is upgrading, by making such code
already easily accessible for daring souls.

Regards,

George