Menu

#2007 Build fails using G++ (C++14)

Bug
closed-rejected
C++14 (1)
5
2018-05-14
2018-04-05
Artem VL
No

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
...

Discussion

  • Artem VL

    Artem VL - 2018-04-05

    Fixed in the Scintilla Merge Request #21

     

    Last edit: Artem VL 2018-04-05
  • Neil Hodgson

    Neil Hodgson - 2018-04-05
    • status: open --> open-rejected
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2018-04-05

    Scintilla and SciTE 4.x require gcc 7.x or later for C++17 features.

     
  • Artem VL

    Artem VL - 2018-04-05

    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
  • Neil Hodgson

    Neil Hodgson - 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.

     
  • Neil Hodgson

    Neil Hodgson - 2018-05-14
    • status: open-rejected --> closed-rejected
     

Log in to post a comment.