educative.io

Explicit C++17 standard for running code exercises

I noticed that some runnable code exercises use C++14, and some use C++17. I didn’t find any way to change or specify it.
It makes a difference e.g. for things like std::is_convertible_v - it needs c++17 at least.

I suggest using at least c++17 compiler switch for running all samples. Even if the answer is not updated to c++17, it is still good for users to be able to write newer code.

I think it would be worth to also update the answers to c++17 wherever applicable.


Course: https://www.educative.io/courses/templates-in-cpp
Lesson: Educative: Interactive Courses for Software Developers

Hi @Tomasz,
Thank you for pointing out the compiler version issue. We have examined and updated the compiler in the reported lesson. Moreover, we’ve verified versions of the code widgets. They all are (until specified) using version C++17.

Thanks again!

1 Like