I am trying to include a couple xplot files, but I get this very cryptic error message:
Does anyone know why? I have already installed xplot and xeus-cling via conda.
Asked
Active
Viewed 617 times
0

Botje
- 26,269
- 3
- 31
- 41
-
Please post all code and errors as text. `std::decay_t` requires C++14 see https://en.cppreference.com/w/cpp/types/decay – Richard Critten Jun 21 '21 at 06:24
-
The file your error mentions also contains the definition of `std::decay_t`, but it is hidden by an `#if __cplusplus >= 201402L`. According to the GCC documentation, C++14 should be the default since 6.1. Can you show how xplot invokes gcc or add the `-std=c++14` flag to make c++14 explicit? – Botje Jun 21 '21 at 07:34
-
Hi guys, thanks for the info. I have just switched my kernel to c++14, and it works now! I didn't realize std::decay_t was only c++14 and above. – Jun 21 '21 at 20:44