Both scintilla and scite builds fail using default G++ on Ubuntu 16.04 LTS: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) .
...
./../src/Editor.cxx:5978:10: error: ‘clamp’ is not a member of ‘std’
return std::clamp(static_cast<int>(pdoc->GetRelativePosition(static_cast<int
...
Fixed in the Scintilla Merge Request #21
Last edit: Artem VL 2018-04-05
Scintilla and SciTE 4.x require gcc 7.x or later for C++17 features.
Now it is possible to build everything with gcc 5.4+ starting from C++14. Why not to extend the supporting environment for free using this fix?
Last edit: Artem VL 2018-04-05
C++17 includes useful new features. There are further changes in progress that use more new features like std::string_view, std::optional, if constexpr, and structured bindings.