10 Sep
2017
10 Sep
'17
8 p.m.
Em 10 sept 2017, às 19:30, Robert Ramey via Boost
escreveu: How do I get ready for C++17?
I have a piece of code which requires C++14. I want to use something from C++17 but I also want my code to work now. So I have
#if C++14 being used namespace std { // implement C++ function } // std
I've looked in the documentation for Boost.Config and can't find any hints there.
You might find this technique useful: http://bannalia.blogspot.com/2016/09/compile-time-checking-existence-of.html... The nice thing about it is you don't depend on implementation macros that might or might not be accurate. Joaquín M López Muñoz