Etaash-mathamsetty / trigger-control

control the dualsense's triggers on Linux (and Windows) with a gui and C++ api!
MIT License
69 stars 4 forks source link

Fix build on clang 16 #23

Closed azuwis closed 11 months ago

azuwis commented 11 months ago

Fix error when using clang 16:

imgui/imfilebrowser.h:393:15: error: non-const lvalue reference to type 'reference' (aka 'std::filesystem::path') cannot bind to a temporary of type 'reference' (aka 'std::filesystem::path')
    for(auto &sec : pwd_)
              ^   ~
imgui/imfilebrowser.h:421:19: error: non-const lvalue reference to type 'reference' (aka 'std::filesystem::path') cannot bind to a temporary of type 'reference' (aka 'std::filesystem::path')
        for(auto &sec : pwd_)
                  ^   ~
Etaash-mathamsetty commented 11 months ago

you might want to add this to the upstream imguifilebrowser as well