Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以做一些事情来轻松查看valarray<double>Clion 调试器中 a 的内容?
valarray<double>
根据 JetBrains ( 1 ),如果使用 GCC 编译器,您将能够在调试会话期间检查 STL 容器。如果是 Clang,它仅适用于 libstdc++,因此您必须在CMakeLists.txt中设置CMAKE_CXX_FLAGS才能使用它:
set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -stdlib=libstdc++”)