enforce =std=c++14 for lambda capture initializers
Fixes realsense-viewer.cpp:69:33: warning: lambda capture initializers only available with ‘-std=c++14’ or ‘-std=gnu++14’ [-Wc++14-extensions] 69 | [&viewer_model, weak_device_models = std::weak_ptr< device_models_list >( device_models ), filename](
This is needed on C++17 compilers.
Hi @rurban Thanks.
This is needed on C++17 compilers
You mean the compiler makes this into an error? Can you clarify? Which compiler? Can you add the message it gives?
The library itself turns on C++14, but not the surrounding tools & examples. If the Viewer triggers this specific warning, we can turn C++14 on for the Viewer, but we kept the binaries at C++11 on purpose. It might be time to move on, but I want to first clarify what the compiler issue is.
All compilers which default to std=c++17, e..g. since gcc-11. I was using gcc-13 and now gcc-14