Skip to content

#include <algorithm> in common/lib_tree_model.cpp so std::sort is found.

Thomas Posch requested to merge (removed):patch-1 into master

Compiling kicad-5.1.5 with gcc-9.3.0 and boost-1.73 failed with:

kicad-5.1.5/common/lib_tree_model.cpp:78:14: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’?
kicad-5.1.5/common/lib_tree_model.cpp:90:10: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’?

Including <algorithm> fixes the problem.

Edited by Thomas Posch

Merge request reports